2024-07-29 23:09:42 -05:00
|
|
|
{
|
2024-09-14 11:56:44 -05:00
|
|
|
lib,
|
2024-09-03 21:24:20 -05:00
|
|
|
pkgs,
|
|
|
|
userName,
|
2024-09-14 11:56:44 -05:00
|
|
|
userEmail,
|
2024-09-03 21:24:20 -05:00
|
|
|
...
|
2024-09-14 11:56:44 -05:00
|
|
|
}: let
|
|
|
|
# Have a file sturcture that holds all the configuration files that can't be configured by Nix
|
|
|
|
# or maybe I'm too lazy to do anything about it? I dunno
|
|
|
|
dirs = {
|
|
|
|
defaults = ../defaults;
|
|
|
|
};
|
|
|
|
in {
|
2024-09-08 15:44:14 -05:00
|
|
|
# Import sub modules
|
2024-09-14 11:56:44 -05:00
|
|
|
imports = map (module: import module {inherit lib pkgs dirs userName userEmail;}) [
|
2024-07-29 23:09:42 -05:00
|
|
|
./atuin.nix
|
|
|
|
./shell.nix
|
|
|
|
./core.nix
|
|
|
|
./git.nix
|
|
|
|
./starship.nix
|
|
|
|
./eza.nix
|
|
|
|
./neovim.nix
|
|
|
|
./direnv.nix
|
2024-09-07 21:22:12 -05:00
|
|
|
./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}";
|
2024-09-08 15:44:14 -05:00
|
|
|
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;
|
|
|
|
}
|