nixos/modules/git.nix
Gerg-L 160a5c3ffe localModules -> local
moved keys to their own module

updated nix

switching pinning method
2023-07-02 00:35:14 -04:00

30 lines
528 B
Nix

_: {
pkgs,
config,
lib,
...
}: {
options.local.git.disable = lib.mkOption {
type = lib.types.bool;
default = false;
};
config = lib.mkIf (! config.local.git.disable) {
programs.git = {
enable = true;
package = pkgs.gitMinimal;
config = {
user = {
name = "Gerg-L";
email = "GregLeyda@proton.me";
};
init = {
defaultBranch = "master";
};
push = {
autoSetupRemote = true;
};
};
};
};
}