diff --git a/config-gnome.nix b/config-gnome.nix index ec09a07..5922301 100644 --- a/config-gnome.nix +++ b/config-gnome.nix @@ -13,8 +13,12 @@ systemd-boot.enable = true; }; - boot.initrd.luks.devices.crypt-root.device = "/dev/vda2"; - fileSystems."/".device = "/dev/mapper/crypt-root"; + boot.initrd.luks.devices = { + crypted = { + device = "/dev/disk/by-label/root>"; + preLVM = true; + }; + }; # Name your host machine networking.hostName = "NixOS-VM";