mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Name git ssh keys after domains
This commit is contained in:
parent
e69fd26f27
commit
e0eb82bc9f
3 changed files with 16 additions and 16 deletions
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
config = lib.mkIf config.custom.programs.git.enable {
|
||||
sops.secrets = {
|
||||
"ssh-key/forgejo" = { };
|
||||
"ssh-key/github" = { };
|
||||
"ssh-key/hda-gitlab" = { };
|
||||
"ssh-key/git.sstork.dev" = { };
|
||||
"ssh-key/github.com" = { };
|
||||
"ssh-key/code.fbi.h-da.de" = { };
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
|
@ -34,9 +34,9 @@
|
|||
ssh = {
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
"git.sstork.dev".identityFile = config.sops.secrets."ssh-key/forgejo".path;
|
||||
"github.com".identityFile = config.sops.secrets."ssh-key/github".path;
|
||||
"code.fbi.h-da.de".identityFile = config.sops.secrets."ssh-key/hda-gitlab".path;
|
||||
"git.sstork.dev".identityFile = config.sops.secrets."ssh-key/git.sstork.dev".path;
|
||||
"github.com".identityFile = config.sops.secrets."ssh-key/github.com".path;
|
||||
"code.fbi.h-da.de".identityFile = config.sops.secrets."ssh-key/code.fbi.h-da.de".path;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue