diff --git a/hw/straylight/hardware-configuration.nix b/hw/straylight/hardware-configuration.nix index a9fbbc9..d1e9dcf 100644 --- a/hw/straylight/hardware-configuration.nix +++ b/hw/straylight/hardware-configuration.nix @@ -30,16 +30,15 @@ options = [ "fmask=0077" "dmask=0077" ]; }; + boot.initrd.luks.devices."home-crypt" = { + device = "/dev/disk/by-uuid/edfdcdf4-083a-4826-a1f8-9670545e0bc5"; + }; + fileSystems."/home" = { device = "/dev/mapper/home-crypt"; fsType = "ext4"; - options = [ "defaults" ]; }; - environment.etc.crypttab.text = '' - home-crypt UUID=edfdcdf4-083a-4826-a1f8-9670545e0bc5 /etc/secrets/home.key luks - ''; - swapDevices = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";