diff --git a/hosts/apollo/boot.nix b/hosts/apollo/boot.nix index 8870e2b..5892121 100644 --- a/hosts/apollo/boot.nix +++ b/hosts/apollo/boot.nix @@ -29,9 +29,9 @@ }; }; - fileSystems."/keys" = { - device = "/dev/mapper/zfs-keys"; - fsType = "ext4"; + systemd.services."zfs-import-nix-main" = { + wants = [ "keys.mount" ]; + after = [ "keys.mount" ]; }; boot.zfs.forceImportRoot = false; @@ -50,6 +50,11 @@ fsType = "zfs"; }; + fileSystems."/keys" = { + device = "/dev/mapper/zfs-keys"; + fsType = "ext4"; + }; + fileSystems."/home/nyxerinys" = { device = "nix-main/nyxerinys"; fsType = "zfs";