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 = {
enable = true;
userName = "Michał Czyż";
userEmail = "mike@c2yz.com";
signing = {
key = "9745B9E27E2B1ABB";
signByDefault = true;
};
extraConfig = {
init.defaultBranch = "main";
push.autoSetupRemote = true;
user.signingkey = "9745B9E27E2B1ABB";
commit.gpgsign = true;
push.enabled = true;
column.ui = "auto";
branch.sort = "-committerdate";
pull.rebase = "false";
rerere.enabled = true;
# gpg = {
# 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}'
# '';
# };
tag.gpgSign = true;
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; [
# > graphics < #
tuxpaint
@@ -77,6 +80,5 @@
vim
nixfmt-rfc-style
nemo
nix-direnv
];
}