mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Add forgejo ssh key
This commit is contained in:
parent
bf6c0040d9
commit
e69fd26f27
3 changed files with 10 additions and 16 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
config = lib.mkIf config.custom.programs.git.enable {
|
||||
sops.secrets = {
|
||||
"ssh-key/forgejo" = { };
|
||||
"ssh-key/github" = { };
|
||||
"ssh-key/hda-gitlab" = { };
|
||||
};
|
||||
|
|
@ -33,6 +34,7 @@
|
|||
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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue