{ config, pkgs, lib, ... }: { # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release # introduces backwards incompatible changes. # # You should not change this value, even if you update Home Manager. If you do # want to update the value, then make sure to first check the Home Manager # release notes. home.stateVersion = "26.05"; # Please read the comment before changing. news.display = "silent"; programs.starship = { enable = true; settings = { add_newline = false; character = { success_symbol = "[➜](bold green)"; error_symbol = "[➜](bold red)"; }; time = { disabled = false; format = "\[ $time \]($style)"; time_format = "%T"; }; }; }; programs.zen-browser = { enable = true; package = null; # managed via homebrew darwinDefaultsId = "app.zen-browser.zen"; policies = import ./zen/zenPolicies.nix; profiles.default = import ./zen/zenProfile.nix; }; programs.eza = { enable = true; enableZshIntegration = true; }; programs.gpg.enable = true; programs.git = { enable = true; signing.signByDefault = true; settings = { user = { name = "Ryan Schanzenbacher"; email = "ryan@rschanz.org"; }; core.pager = "${pkgs.delta}/bin/delta"; init.defaultBranch = "main"; merge.conflictStyle = "zdiff3"; interactive.diffFilter = "${pkgs.delta}/bin/delta --color-only"; delta = { navigate = true; side-by-side = true; }; }; }; services.gpg-agent = { enable = true; enableSshSupport = true; }; programs.zsh = { enable = true; initContent = '' export GPG_TTY="$(tty)" export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" gpgconf --launch gpg-agent gpg-connect-agent updatestartuptty /bye > /dev/null ''; shellAliases = { cat = "bat --paging=never"; diff = "delta"; }; }; # The home.packages option allows you to install Nix packages into your # environment. home.packages = with pkgs; [ neovim git yt-dlp aerc gdu taskwarrior3 delta bat pass pandoc iina # Media player (frontend to mpv essentially) ]; # Home Manager is pretty good at managing dotfiles. The primary way to manage # plain files is through 'home.file'. home.file = { # # Building this configuration will create a copy of 'dotfiles/screenrc' in # # the Nix store. Activating the configuration will then make '~/.screenrc' a # # symlink to the Nix store copy. # ".screenrc".source = dotfiles/screenrc; # # You can also set the file content immediately. # ".gradle/gradle.properties".text = '' # org.gradle.console=verbose # org.gradle.daemon.idletimeout=3600000 # ''; }; # Install User apps to subdir for dock stuff targets.darwin.linkApps.directory = "Applications/User Apps"; # Symlink System apps into the user apps "system" dir home.activation.linkSystemApps = lib.hm.dag.entryAfter ["writeBoundary"] '' if [[ -z "$HOME" ]]; then echo "ERROR: HOME was not defined. This should not happen. Bailing! ">&2 exit 1 fi $DRY_RUN_CMD mkdir -p "$HOME/Applications/System Apps" $DRY_RUN_CMD rm -rf "$HOME/Applications/System Apps/"*.app $DRY_RUN_CMD find /Applications /System/Applications -maxdepth 2 -name "*.app" \ -prune -exec ln -sf {} "$HOME/Applications/System Apps/" \; ''; xdg.configFile."aerc" = { source = ./aerc; recursive = true; }; home.sessionVariables = { XDG_CONFIG_HOME = "${config.home.homeDirectory}/.config"; EDITOR = "${pkgs.neovim}/bin/nvim"; }; # Let Home Manager install and manage itself. programs.home-manager.enable = true; }