nixos/modules/git.nix
Gerg-L 0d2e560191 switch to using specialArgs for inputs
made dummy option for deadnix to shutup about disko

update flake.lock

stopped using neovim overlay
2023-05-17 22:35:48 -04:00

33 lines
577 B
Nix

{
pkgs,
config,
lib,
...
}: let
cfg = config.localModules.git;
in {
options.localModules.git = {
disable = lib.mkOption {
type = lib.types.bool;
default = false;
};
};
config = lib.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;
};
};
};
};
}