2024-02-26 05:17:27 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
2024-03-13 13:10:23 +00:00
|
|
|
config,
|
2024-02-26 05:17:27 +00:00
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = map (n: ../../../../home/applications/${n}) [
|
|
|
|
"go"
|
|
|
|
"mpv"
|
2024-06-14 23:25:48 +00:00
|
|
|
"nix"
|
2024-02-26 05:17:27 +00:00
|
|
|
];
|
|
|
|
|
2024-03-13 13:10:23 +00:00
|
|
|
# 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";
|
2024-02-26 05:17:27 +00:00
|
|
|
};
|
2024-03-13 13:10:23 +00:00
|
|
|
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
|
|
|
|
];
|
2024-02-26 05:17:27 +00:00
|
|
|
}
|