{ pkgs, lib, config, ... }: { imports = map (n: ../../../../home/applications/${n}) [ # Terminal "alacritty" # Shell "fish" "bash" # Editor "helix" "neovim" "vscode" # Language "nix" "go" # Media "mpv" "spotify" # Misc "telegram-desktop" ]; # Install MacOS applications to the user Applications folder. Also update Docked applications # Modified version of: https://github.com/nix-community/home-manager/issues/1341#issuecomment-1870352014 home.file."Applications/Home Manager Apps".enable = false; home.activation.trampolineApps = let apps = pkgs.buildEnv { name = "home-manager-applications"; paths = config.home.packages; pathsToLink = "/Applications"; }; in lib.hm.dag.entryAfter ["writeBoundary"] '' ${builtins.readFile ./trampoline-apps.sh} fromDir="${apps}/Applications" toDir="$HOME/Applications/Home Manager Trampolines" sync_trampolines "$fromDir" "$toDir" ''; home.extraActivationPath = with pkgs; [ rsync dockutil gawk ]; home.packages = with pkgs; [ ## GUI ### Tools keka # un-archive-r iterm2 ### Misc element-desktop ]; # macOS don't have fontconfig programs = let monospace = "JetBrainsMono Nerd Font"; in { ### VSCode vscode.userSettings.editor.fontFamily = monospace; ### Alacritty alacritty.settings.font = { normal.family = monospace; bold.family = monospace; bold_italic.family = monospace; italic.family = monospace; }; }; }