[SSH] Add GitHub key
This commit is contained in:
parent
5897150ea6
commit
dd0aa22793
3 changed files with 43 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
|||
# Use an age key that is expected to already be in the filesystem
|
||||
keyFile = "/var/lib/sops-nix/key.txt";
|
||||
# Generate new keys if the key specified above does not exist
|
||||
generateKey = true;
|
||||
# generateKey = true;
|
||||
};
|
||||
secrets = {
|
||||
"H4G0/ssh" = {
|
||||
|
@ -22,6 +22,11 @@
|
|||
sopsFile = ../../../secrets/H4G0.yaml;
|
||||
owner = config.users.users.tdpeuter.name;
|
||||
};
|
||||
"GitHub/ssh" = {
|
||||
format = "yaml";
|
||||
sopsFile = ../../../secrets/GitHub.yaml;
|
||||
owner = config.users.users.tdpeuter.name;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -16,6 +16,12 @@
|
|||
identityFile = "/run/secrets/H4G0/ssh";
|
||||
user = "admin";
|
||||
};
|
||||
"github.com" = {
|
||||
hostname = "github.com";
|
||||
identitiesOnly = true;
|
||||
identityFile = "/run/secrets/GitHub/ssh";
|
||||
user = "tdpeuter";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue