add core configuration
This commit is contained in:
parent
ad124505da
commit
c556ce55b6
94 changed files with 2816 additions and 959 deletions
33
home-manager/modules/git/default.nix
Normal file
33
home-manager/modules/git/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
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";
|
||||
email = "Caznix01@gmail.com";
|
||||
signingKey = "Caznix";
|
||||
};
|
||||
commit.gpgsign = true;
|
||||
init.defaultBranch = "main";
|
||||
merge = {
|
||||
ff = "no";
|
||||
no-commit = "yes";
|
||||
};
|
||||
pull.ff = "only";
|
||||
push = {autoSetupRemote = true;};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue