nix-config-v2/home/default.nix

37 lines
669 B
Nix
Raw Normal View History

2024-07-29 23:09:42 -05:00
{
2024-09-03 21:24:20 -05:00
pkgs,
userName,
...
2024-09-07 00:52:43 -05:00
}: {
# Import sub modules
2024-07-29 23:09:42 -05:00
imports = [
./atuin.nix
./shell.nix
./core.nix
./git.nix
./starship.nix
./eza.nix
./neovim.nix
./direnv.nix
./sway.nix
./terminal.nix
2024-07-29 23:09:42 -05:00
];
# Home Manager needs a bit of information about you and the
# paths it should manage.
2024-09-07 00:52:43 -05:00
home = {
username = userName;
homeDirectory =
if pkgs.stdenv.isDarwin
then "/Users/${userName}"
else "/home/${userName}";
sessionVariables = {
XDG_CURRENT_DESKTOP = "sway";
};
2024-09-07 00:52:43 -05:00
stateVersion = "24.05";
};
2024-07-29 23:09:42 -05:00
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}