mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Change path of ssh-key secrets
This commit is contained in:
parent
6bb51f914e
commit
343aab524e
3 changed files with 14 additions and 12 deletions
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
config = lib.mkIf config.myConfig.git.enable {
|
||||
sops.secrets = {
|
||||
"github-ssh-key".path = "${config.home.homeDirectory}/.ssh/github";
|
||||
"hda-gitlab-ssh-key".path = "${config.home.homeDirectory}/.ssh/hda-gitlab";
|
||||
"ssh-key/github" = { };
|
||||
"ssh-key/hda-gitlab" = { };
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
|
@ -33,8 +33,8 @@
|
|||
ssh = {
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
"github.com".identityFile = "~/.ssh/github";
|
||||
"code.fbi.h-da.de".identityFile = "~/.ssh/hda-gitlab";
|
||||
"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