diff options
Diffstat (limited to 'users')
| -rw-r--r-- | users/ryan/home.nix | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/users/ryan/home.nix b/users/ryan/home.nix index 9154066..33aa292 100644 --- a/users/ryan/home.nix +++ b/users/ryan/home.nix | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | { config, pkgs, ... }: | 1 | { config, pkgs, lib, ... }: |
| 2 | 2 | ||
| 3 | { | 3 | { |
| 4 | # This value determines the Home Manager release that your configuration is | 4 | # This value determines the Home Manager release that your configuration is |
| @@ -89,12 +89,12 @@ | |||
| 89 | yt-dlp | 89 | yt-dlp |
| 90 | aerc | 90 | aerc |
| 91 | gdu | 91 | gdu |
| 92 | mpv | ||
| 93 | taskwarrior3 | 92 | taskwarrior3 |
| 94 | delta | 93 | delta |
| 95 | bat | 94 | bat |
| 96 | pass | 95 | pass |
| 97 | pandoc | 96 | pandoc |
| 97 | iina # Media player (frontend to mpv essentially) | ||
| 98 | ]; | 98 | ]; |
| 99 | 99 | ||
| 100 | # Home Manager is pretty good at managing dotfiles. The primary way to manage | 100 | # Home Manager is pretty good at managing dotfiles. The primary way to manage |
| @@ -112,6 +112,24 @@ | |||
| 112 | # ''; | 112 | # ''; |
| 113 | }; | 113 | }; |
| 114 | 114 | ||
| 115 | # Install User apps to subdir for dock stuff | ||
| 116 | targets.darwin.linkApps.directory = "Applications/User Apps"; | ||
| 117 | |||
| 118 | # Symlink System apps into the user apps "system" dir | ||
| 119 | home.activation.linkSystemApps = lib.hm.dag.entryAfter ["writeBoundary"] '' | ||
| 120 | if [[ -z "$HOME" ]]; then | ||
| 121 | echo "ERROR: HOME was not defined. This should not happen. Bailing! ">&2 | ||
| 122 | exit 1 | ||
| 123 | fi | ||
| 124 | |||
| 125 | $DRY_RUN_CMD mkdir -p "$HOME/Applications/System Apps" | ||
| 126 | |||
| 127 | $DRY_RUN_CMD rm -rf "$HOME/Applications/System Apps/"*.app | ||
| 128 | |||
| 129 | $DRY_RUN_CMD find /Applications /System/Applications -maxdepth 2 -name "*.app" \ | ||
| 130 | -prune -exec ln -sf {} "$HOME/Applications/System Apps/" \; | ||
| 131 | ''; | ||
| 132 | |||
| 115 | xdg.configFile."aerc" = { | 133 | xdg.configFile."aerc" = { |
| 116 | source = ./aerc; | 134 | source = ./aerc; |
| 117 | recursive = true; | 135 | recursive = true; |
