nixos-config/hosts/worf/home.nix

85 lines
1.7 KiB
Nix
Raw Normal View History

2023-07-26 10:48:52 +02:00
{ pkgs
, lib
, inputs
, config
, ...
}: {
2023-07-27 11:33:44 +02:00
imports = [
2023-07-27 13:13:03 +02:00
./neovim.nix
2023-07-27 11:33:44 +02:00
./zsh.nix
];
2023-07-26 10:48:52 +02:00
home.packages = with pkgs; [
2023-08-18 19:06:07 +02:00
bat
2023-07-27 11:33:44 +02:00
bottom
2023-08-08 08:51:20 +02:00
cocoapods
2023-08-18 19:06:07 +02:00
emacs
2023-07-26 10:48:52 +02:00
exa
2023-08-18 19:06:07 +02:00
gnutar
2023-07-26 15:22:24 +02:00
iterm2
2023-08-08 08:51:20 +02:00
ncdu
neofetch
2023-07-27 13:13:03 +02:00
nix-index
nodejs
2023-09-13 23:20:31 +02:00
# unstable.ripes
2023-07-27 11:33:44 +02:00
spotify
2023-08-08 08:51:20 +02:00
tldr
2023-07-26 15:22:24 +02:00
vscode
2023-07-26 10:48:52 +02:00
];
2023-07-27 13:13:03 +02:00
programs.git = {
enable = true;
extraConfig = {
2023-08-18 19:06:07 +02:00
pull.rebase = true;
push.autoSetupRemote = true;
2023-07-27 13:13:03 +02:00
color.ui = "auto";
init.defaultBranch = "main";
2023-08-08 08:51:20 +02:00
lfs.enable = true;
2023-07-27 13:13:03 +02:00
user = {
name = "Felix Albrigtsen";
email = "felix@albrigtsen.it";
};
};
ignores = [
"*~"
"*.swp"
".DS_Store"
".vscode"
];
};
2023-09-13 23:20:31 +02:00
programs.nix-index = {
enable = true;
enableZshIntegration = true;
};
2023-07-26 15:22:24 +02:00
# Copy Applications to ~/Applications to allow them to be launched from Spotlight
2023-07-26 10:48:52 +02:00
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";
}