61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
imports = map (n: ../../../../home/applications/${n}) [
|
|
# Terminal
|
|
"alacritty"
|
|
|
|
# Editor
|
|
"neovim"
|
|
"vscode"
|
|
|
|
# Language
|
|
"nix"
|
|
"go"
|
|
|
|
# Media
|
|
"mpv"
|
|
"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
|
|
];
|
|
|
|
# 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;
|
|
};
|
|
};
|
|
}
|