33 lines
635 B
Nix
33 lines
635 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.lily.git;
|
|
in {
|
|
options.lily.git = {
|
|
enable = lib.mkEnableOption "activate git";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.git = {
|
|
enable = true;
|
|
lfs.enable = true;
|
|
extraConfig = {
|
|
user = {
|
|
name = "Lily Vex";
|
|
email = "lesson085@gmail.com";
|
|
signingKey = "Placeholder";
|
|
};
|
|
commit.gpgsign = true;
|
|
init.defaultBranch = "main";
|
|
merge = {
|
|
ff = "no";
|
|
no-commit = "yes";
|
|
};
|
|
pull.ff = "only";
|
|
push = {autoSetupRemote = true;};
|
|
};
|
|
};
|
|
};
|
|
}
|