mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 16:56:11 +01:00
git config
This commit is contained in:
@@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,4 +12,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.ssh = {
|
||||||
|
startAgent = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user