Avoid repeated keys

This commit is contained in:
SebastianStork 2024-08-07 01:22:15 +02:00
parent 53d90bee5a
commit 94e52b022b
12 changed files with 143 additions and 114 deletions

View file

@ -3,18 +3,22 @@
options.myConfig.git.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.git.enable {
programs.git = {
enable = true;
userName = "SebastianStork";
userEmail = "sebastian.stork@pm.me";
extraConfig.init.defaultBranch = "main";
};
programs.lazygit.enable = true;
sops.secrets.github-ssh-key.path = "${config.home.homeDirectory}/.ssh/github";
programs.ssh = {
enable = true;
matchBlocks."github.com".identityFile = "~/.ssh/github";
programs = {
git = {
enable = true;
userName = "SebastianStork";
userEmail = "sebastian.stork@pm.me";
extraConfig.init.defaultBranch = "main";
};
lazygit.enable = true;
ssh = {
enable = true;
matchBlocks."github.com".identityFile = "~/.ssh/github";
};
};
};
}