From e5980dca43c06abe12f7cb855b6db3e009c159e8 Mon Sep 17 00:00:00 2001 From: Lyn Date: Wed, 16 Oct 2024 19:00:09 +0200 Subject: [PATCH] desperate attempt to make this work --- hosts/supernova/default.nix | 15 +++++++++++++-- hosts/supernova/hardware-configuration.nix | 3 +++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/hosts/supernova/default.nix b/hosts/supernova/default.nix index 7f93970..a1ba071 100644 --- a/hosts/supernova/default.nix +++ b/hosts/supernova/default.nix @@ -18,8 +18,16 @@ system.stateVersion = "24.05"; # FDE stuff - boot.initrd.availableKernelModules = [ "virtio-pci" ]; - boot.initrd.network = { + + boot.initrd = { + availableKernelModules = [ "virtio-pci" ]; + secrets = {"/root/initrd-ssh-key" = "/root/initrd-ssh-key";}; + network = { + + udhcpc.enable = true; + flushBeforeStage2 = true; + + enable = true; ssh = { enable = true; @@ -33,4 +41,7 @@ echo 'cryptsetup-askpass' >> /root/.profile ''; }; + } + + } \ No newline at end of file diff --git a/hosts/supernova/hardware-configuration.nix b/hosts/supernova/hardware-configuration.nix index ac591b6..816c6f9 100644 --- a/hosts/supernova/hardware-configuration.nix +++ b/hosts/supernova/hardware-configuration.nix @@ -13,6 +13,9 @@ boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; + boot.initrd.systemd.enable = true; + #boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/db8a5cf9-c54b-4e6a-b3f9-e6323eb962a6"; + fileSystems."/" = { device = "/dev/disk/by-uuid/4f7afb2d-a730-4a0c-a9e4-92d75ebd1540"; fsType = "btrfs";