51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
|
{ pkgs
|
||
|
, lib
|
||
|
, inputs
|
||
|
, config
|
||
|
, ...
|
||
|
}: {
|
||
|
|
||
|
|
||
|
home.packages = with pkgs; [
|
||
|
iterm2
|
||
|
#element-desktop
|
||
|
exa
|
||
|
];
|
||
|
|
||
|
programs = {
|
||
|
zsh = {
|
||
|
enable = true;
|
||
|
enableAutosuggestions = true;
|
||
|
enableSyntaxHighlighting = true;
|
||
|
history.size = 10000;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# symlinks don't work with finder + spotlight, copy them instead
|
||
|
disabledModules = [ "targets/darwin/linkapps.nix" ];
|
||
|
home.activation = lib.mkIf pkgs.stdenv.isDarwin {
|
||
|
copyApplications =
|
||
|
let
|
||
|
apps = pkgs.buildEnv {
|
||
|
name = "home-manager-applications";
|
||
|
paths = config.home.packages;
|
||
|
pathsToLink = "/Applications";
|
||
|
};
|
||
|
in
|
||
|
lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||
|
baseDir="$HOME/Applications/Home Manager Apps"
|
||
|
if [ -d "$baseDir" ]; then
|
||
|
rm -rf "$baseDir"
|
||
|
fi
|
||
|
mkdir -p "$baseDir"
|
||
|
for appFile in ${apps}/Applications/*; do
|
||
|
target="$baseDir/$(basename "$appFile")"
|
||
|
$DRY_RUN_CMD cp ''${VERBOSE_ARG:+-v} -fHRL "$appFile" "$baseDir"
|
||
|
$DRY_RUN_CMD chmod ''${VERBOSE_ARG:+-v} -R +w "$target"
|
||
|
done
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
home.stateVersion = "23.05";
|
||
|
}
|