git config

This commit is contained in:
2024-11-07 18:22:24 +01:00
parent a551e28e24
commit 90e06eb0ec
3 changed files with 14 additions and 13 deletions

View File

@@ -1,29 +1,25 @@
{ pkgs, config, ... }: { {
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Michał Czyż"; userName = "Michał Czyż";
userEmail = "mike@c2yz.com"; userEmail = "mike@c2yz.com";
signing = {
key = "9745B9E27E2B1ABB";
signByDefault = true;
};
extraConfig = { extraConfig = {
init.defaultBranch = "main"; init.defaultBranch = "main";
push.autoSetupRemote = true; push.autoSetupRemote = true;
user.signingkey = "9745B9E27E2B1ABB";
commit.gpgsign = true; commit.gpgsign = true;
push.enabled = true; push.enabled = true;
column.ui = "auto"; column.ui = "auto";
branch.sort = "-committerdate"; branch.sort = "-committerdate";
pull.rebase = "false"; pull.rebase = "false";
rerere.enabled = true; rerere.enabled = true;
# gpg = { tag.gpgSign = true;
# format = "ssh";
# ssh.defaultKeyCommand = pkgs.writeShellScript "git_key" ''
# if ssh-add -L | grep -vq '${config.local.keys.senpai}'; then
# ssh-add -t 1m ~/.ssh/id_ed25519
# fi
# echo 'key::${config.local.keys.senpai}'
# '';
# };
push.gpgsign = "if-asked"; push.gpgsign = "if-asked";
}; };
}; };

View File

@@ -1,5 +1,8 @@
{ pkgs, inputs, ... }: { pkgs, ... }:
{ {
programs.direnv.enable = true;
programs.direnv.nix-direnv.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
# > graphics < # # > graphics < #
tuxpaint tuxpaint
@@ -77,6 +80,5 @@
vim vim
nixfmt-rfc-style nixfmt-rfc-style
nemo nemo
nix-direnv
]; ];
} }

View File

@@ -12,4 +12,7 @@
}; };
}; };
programs.ssh = {
startAgent = true;
};
} }