Set up the basics of imperanence
This commit is contained in:
parent
7bd9d9aa0b
commit
78f154b38a
20 changed files with 224 additions and 134 deletions
hosts/nixos/common/global
|
@ -30,10 +30,13 @@ in
|
|||
gatewayPorts = "clientspecified";
|
||||
|
||||
# Generate ssh key
|
||||
hostKeys = [{
|
||||
path = "/persist/etc/ssh/ssh_host_ed25519_key";
|
||||
type = "ed25519";
|
||||
}];
|
||||
hostKeys =
|
||||
let mkKey = type: path: extra: { inherit type path; } // extra;
|
||||
in
|
||||
[
|
||||
(mkKey "ed25519" "/persist/etc/ssh/ssh_host_ed25519_key" { })
|
||||
(mkKey "rsa" "/persist/etc/ssh/ssh_host_rsa_key" { bits = 4096; })
|
||||
];
|
||||
};
|
||||
|
||||
# Passwordless sudo when SSH'ing with keys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue