Modularize home-manager config

This commit is contained in:
2026-02-08 12:36:32 +00:00
parent e6601f04c7
commit d79d8824cf
4 changed files with 105 additions and 37 deletions

37
modules/home.nix Normal file
View File

@@ -0,0 +1,37 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
git
vim
stow
screen
];
programs.zsh = {
enable = true;
initContent = ''
. ~/dotfiles/migrated/.zshrc
# Outside NixOS, we need to load this manually. Same on MacOS, if
# /etc/zshrc is reset to its default content (post-upgrade).
if [ -r /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]; then
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
fi
'';
};
programs.home-manager.enable = true;
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
config.global = {
warn_timeout = "30s";
hide_env_diff = true;
};
};
home.stateVersion = "25.11"; # never modify
}