git.nix: remove home-manager config
This commit is contained in:
parent
965992fb76
commit
b17c450e27
1 changed files with 22 additions and 10 deletions
|
@ -5,17 +5,29 @@
|
|||
}: let
|
||||
inherit (config.modules.other.system) username;
|
||||
in {
|
||||
home-manager.users.${username} = {
|
||||
home.packages = with pkgs; [gnupg];
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Charlie Root";
|
||||
userEmail = "charlie@charlieroot.dev";
|
||||
signing = {
|
||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILPiRe9OH/VtWFWyy5QbAVcN7CLxr4zUtRCwmxD6aeN6";
|
||||
signByDefault = true;
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
config = {
|
||||
user = {
|
||||
name = "Charlie Root";
|
||||
email = "charlie@charlieroot.dev";
|
||||
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILPiRe9OH/VtWFWyy5QbAVcN7CLxr4zUtRCwmxD6aeN6";
|
||||
};
|
||||
init.defaultbranch = "main";
|
||||
branch.autosetupmerge = "true";
|
||||
merge.stat = "true";
|
||||
pull.ff = "only";
|
||||
gpg.format = "ssh";
|
||||
commit.gpgsign = "true";
|
||||
rebase = {
|
||||
autoSquash = true;
|
||||
autoStash = true;
|
||||
};
|
||||
rerere = {
|
||||
enabled = true;
|
||||
autoupdate = true;
|
||||
};
|
||||
extraConfig.gpg.format = "ssh";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue