From 81deee8e270b7de3dfe6ed5fecfc8dd8b47535d6 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Fri, 22 Apr 2022 01:51:17 -0400 Subject: [PATCH] fix(Infini-DESKTOP): mount host keys during boot --- hosts/Infini-DESKTOP/default.nix | 5 ----- hosts/Infini-DESKTOP/hardware-configuration.nix | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hosts/Infini-DESKTOP/default.nix b/hosts/Infini-DESKTOP/default.nix index b46d385..024b7e2 100644 --- a/hosts/Infini-DESKTOP/default.nix +++ b/hosts/Infini-DESKTOP/default.nix @@ -28,11 +28,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" ]; diff --git a/hosts/Infini-DESKTOP/hardware-configuration.nix b/hosts/Infini-DESKTOP/hardware-configuration.nix index 8ae1c8d..949ec60 100644 --- a/hosts/Infini-DESKTOP/hardware-configuration.nix +++ b/hosts/Infini-DESKTOP/hardware-configuration.nix @@ -34,6 +34,13 @@ in neededForBoot = true; }; + "/etc/ssh" = { + device = main; + fsType = "btrfs"; + options = [ "subvolid=262" "autodefrag" "noatime" "ssd" ]; + neededForBoot = true; + }; + "/media/main" = { device = main; fsType = "btrfs";