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
|
2024-11-03 21:44:23 -06:00
|
|
|
./packages
|
2024-07-29 23:09:42 -05:00
|
|
|
./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-14 14:30:50 -05:00
|
|
|
|
2024-09-08 15:44:14 -05:00
|
|
|
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";
|
2024-09-08 15:44:14 -05:00
|
|
|
};
|
2024-09-14 14:30:50 -05:00
|
|
|
|
2024-11-03 21:44:23 -06:00
|
|
|
pointerCursor = lib.mkIf pkgs.stdenv.isLinux {
|
2024-09-14 14:30:50 -05:00
|
|
|
gtk.enable = true;
|
2024-10-30 21:41:50 -05:00
|
|
|
package = pkgs.catppuccin-cursors.mochaDark;
|
|
|
|
name = "catppuccin-mocha-dark-cursors";
|
2024-09-14 14:30:50 -05:00
|
|
|
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;
|
|
|
|
}
|