diff --git a/nixos/machines/nyarlathotep/hardware-configuration.nix b/nixos/machines/nyarlathotep/hardware-configuration.nix index 9f0307e..83a6dcc 100644 --- a/nixos/machines/nyarlathotep/hardware-configuration.nix +++ b/nixos/machines/nyarlathotep/hardware-configuration.nix @@ -7,18 +7,18 @@ }; fileSystems."/persist" = { device = "/dev/disk/by-uuid/a72da670-f631-49b1-bcb3-6d378cc1f2d0"; - fsType = "btrfs"; - options = [ "subvol=persist" ]; + fsType = "ext4"; + neededForBoot = true; }; fileSystems."/boot" = { - device = "/dev/disk/by-uuid/a72da670-f631-49b1-bcb3-6d378cc1f2d0"; - fsType = "btrfs"; - options = [ "subvol=boot" ]; + device = "/persist/boot"; + fsType = "none"; + options = [ "bind" ]; }; fileSystems."/nix" = { - device = "/dev/disk/by-uuid/a72da670-f631-49b1-bcb3-6d378cc1f2d0"; - fsType = "btrfs"; - options = [ "subvol=nix" ]; + device = "/persist/nix"; + fsType = "none"; + options = [ "bind" ]; }; fileSystems."/var/vmail" = { device = "/dev/disk/by-uuid/23c44c93-5035-4e29-9e46-75c1c08f4cea"; diff --git a/nixos/modules/impermanence.nix b/nixos/modules/impermanence.nix index 9fe8998..0f955fd 100644 --- a/nixos/modules/impermanence.nix +++ b/nixos/modules/impermanence.nix @@ -17,7 +17,7 @@ options.impermanence = { enable = mkEnableOption "impermanence"; storagePath = mkOption { type = types.path; - default = "/persist"; + default = "/persist/persist"; description = "The path where persistent data is stored"; }; name = mkOption {