mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
35 lines
589 B
Nix
35 lines
589 B
Nix
_: {
|
|
pkgs,
|
|
options,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.localModules.git;
|
|
in {
|
|
options.localModules.git = {
|
|
disable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
config = mkIf (! cfg.disable) {
|
|
programs.git = {
|
|
enable = true;
|
|
package = pkgs.gitMinimal;
|
|
config = {
|
|
user = {
|
|
name = "Gerg-L";
|
|
email = "GregLeyda@proton.me";
|
|
};
|
|
init = {
|
|
defaultBranch = "master";
|
|
};
|
|
push = {
|
|
autoSetupRemote = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|