fix(Infini-SERVER): mount host keys during boot
This commit is contained in:
parent
890a2ad36b
commit
d3d7fcfb04
2 changed files with 7 additions and 5 deletions
|
@ -41,11 +41,6 @@
|
||||||
files = [
|
files = [
|
||||||
"/etc/machine-id"
|
"/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/.local/share/nix/trusted-settings.json"
|
||||||
"/root/.ssh/known_hosts"
|
"/root/.ssh/known_hosts"
|
||||||
];
|
];
|
||||||
|
|
|
@ -51,6 +51,13 @@ in
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"/etc/ssh" = {
|
||||||
|
device = main;
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvolid=264" "ssd" ] ++ btrfsOptions;
|
||||||
|
neededForBoot = true;
|
||||||
|
};
|
||||||
|
|
||||||
"/persist/srv" = lib.mkIf (data != null) {
|
"/persist/srv" = lib.mkIf (data != null) {
|
||||||
device = data;
|
device = data;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue