User settings restructured

This commit is contained in:
Bryan Ramos 2024-01-28 07:35:34 -05:00
parent fce12d274c
commit 2881653ec5
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
6 changed files with 51 additions and 52 deletions

View file

@ -2,7 +2,6 @@
with lib;
let cfg = config.modules.git;
isBryan = config.user.name == "bryan";
in
{ options.modules.git = { enable = mkEnableOption "git"; };
@ -10,7 +9,7 @@ in
programs = {
git = {
enable = true;
} // (lib.optionalAttrs isBryan (import ./config/git.nix));
} // config.user.gitConfig;
gh = {
enable = true;
settings.git_protocol = "ssh";
@ -19,6 +18,6 @@ in
home.packages = with pkgs; [
git-crypt
] ++ optional isBryan lazygit;
];
};
}