nix-config-v2/home/default.nix

59 lines
1.3 KiB
Nix
Raw Permalink 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
./packages
2024-07-29 23:09:42 -05:00
./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-10-30 21:41:50 -05:00
XDG_SESSION_TYPE = "wayland";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_CACHE_HOME = "$HOME/.cache";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_STATE_HOME = "$HOME/.local/state";
};
pointerCursor = lib.mkIf pkgs.stdenv.isLinux {
gtk.enable = true;
2024-10-30 21:41:50 -05:00
package = pkgs.catppuccin-cursors.mochaDark;
name = "catppuccin-mocha-dark-cursors";
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;
}