tadpole: Add secrets for ssh machine (root) key
This commit is contained in:
@@ -3,6 +3,7 @@ let
|
||||
enabled = config.mod.ssh.enable;
|
||||
|
||||
authorizedKeysPath = "/home/alex/.ssh/authorized-keys";
|
||||
rootSSHKeyPath = "/etc/ssh";
|
||||
in
|
||||
{
|
||||
options = {
|
||||
@@ -41,7 +42,7 @@ in
|
||||
ports = [ 1122 ];
|
||||
|
||||
hostKeys = [{
|
||||
path = "/etc/ssh/tadpole";
|
||||
path = "${rootSSHKeyPath}/root.tadpole";
|
||||
type = "ed25519";
|
||||
}];
|
||||
|
||||
@@ -62,6 +63,15 @@ in
|
||||
};
|
||||
|
||||
age.secrets = {
|
||||
"root.tadpole" = {
|
||||
file = ../../../../secrets/tadpole/root.tadpole.age;
|
||||
path = "${rootSSHKeyPath}/root.tadpole";
|
||||
};
|
||||
"root.tadpole.pub" = {
|
||||
file = ../../../../secrets/tadpole/root.tadpole.pub.age;
|
||||
path = "${rootSSHKeyPath}/root.tadpole.pub";
|
||||
};
|
||||
|
||||
"alex.pinwheel-tadpole.pub" = {
|
||||
file = ../../../../secrets/pinwheel/alex.pinwheel-tadpole.pub.age;
|
||||
path = "${authorizedKeysPath}/alex.pinwheel-tadpole.pub";
|
||||
|
||||
Reference in New Issue
Block a user