fix(Infini-SERVER): mount host keys during boot

This commit is contained in:
Infinidoge 2022-04-22 01:54:17 -04:00
parent 890a2ad36b
commit d3d7fcfb04
2 changed files with 7 additions and 5 deletions

View file

@ -41,11 +41,6 @@
files = [
"/etc/machine-id"
"/etc/ssh/ssh_host_rsa_key"
"/etc/ssh/ssh_host_rsa_key.pub"
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_ed25519_key.pub"
"/root/.local/share/nix/trusted-settings.json"
"/root/.ssh/known_hosts"
];

View file

@ -51,6 +51,13 @@ in
neededForBoot = true;
};
"/etc/ssh" = {
device = main;
fsType = "btrfs";
options = [ "subvolid=264" "ssd" ] ++ btrfsOptions;
neededForBoot = true;
};
"/persist/srv" = lib.mkIf (data != null) {
device = data;
fsType = "btrfs";