mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Avoid repeated keys
This commit is contained in:
parent
53d90bee5a
commit
94e52b022b
12 changed files with 143 additions and 114 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue