nix-config-v2/home/default.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

2024-07-29 23:09:42 -05:00
{
lib,
2024-09-03 21:24:20 -05:00
pkgs,
userName,
userEmail,
2024-09-03 21:24:20 -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 {
# Import sub modules
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
./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";
};
pointerCursor = {
gtk.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 22;
};
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;
}