1
Fork 0

Set up the basics of imperanence

This commit is contained in:
Matei Adriel 2023-04-27 02:08:20 +03:00
parent 7bd9d9aa0b
commit 78f154b38a
No known key found for this signature in database
20 changed files with 224 additions and 134 deletions
hosts/nixos/common/global

View file

@ -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