git is a proper module now

sh-initrd-on-root
Zynh Ludwig 2024-05-29 21:59:06 -07:00
parent 1e7079e54c
commit 6543588596
3 changed files with 44 additions and 35 deletions

View File

@ -3,7 +3,6 @@
{ {
imports = [ imports = [
./home/modules ./home/modules
./home/modules/git.nix
]; ];
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should

View File

@ -4,7 +4,9 @@
./neovim.nix ./neovim.nix
./alacritty.nix ./alacritty.nix
./fish.nix ./fish.nix
./git.nix
]; ];
snowhawk.fish.enable = lib.mkDefault true; snowhawk.fish.enable = lib.mkDefault true;
snowhawk.git.enable = lib.mkDefault true;
} }

View File

@ -1,5 +1,12 @@
{ ... }: { lib, config, ... }:
let
cfg = config.snowhawk.git;
in
{ {
options.snowhawk.git = {
enable = lib.mkEnableOption "git";
};
config = lib.mkIf cfg.enable {
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Zynh Ludwig"; userName = "Zynh Ludwig";
@ -38,4 +45,5 @@
}; };
}; };
}; };
};
} }