Name git ssh keys after domains

This commit is contained in:
SebastianStork 2025-06-03 00:08:13 +02:00
parent e69fd26f27
commit e0eb82bc9f
3 changed files with 16 additions and 16 deletions

View file

@ -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;
};
};