From 08f06f3a92c7e4e5d9cf4bc9b70d3fbc00018dd8 Mon Sep 17 00:00:00 2001 From: Dennis Frieberg Date: Thu, 28 Sep 2023 17:47:00 +0200 Subject: [PATCH] changed nyarlathotep disk layout for impermanence --- .../nyarlathotep/hardware-configuration.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nixos/machines/nyarlathotep/hardware-configuration.nix b/nixos/machines/nyarlathotep/hardware-configuration.nix index d75ae28..83a6dcc 100644 --- a/nixos/machines/nyarlathotep/hardware-configuration.nix +++ b/nixos/machines/nyarlathotep/hardware-configuration.nix @@ -2,8 +2,23 @@ imports = [ ]; fileSystems."/" = { + device = "nya-root"; + fsType = "tmpfs"; + }; + fileSystems."/persist" = { device = "/dev/disk/by-uuid/a72da670-f631-49b1-bcb3-6d378cc1f2d0"; fsType = "ext4"; + neededForBoot = true; + }; + fileSystems."/boot" = { + device = "/persist/boot"; + fsType = "none"; + options = [ "bind" ]; + }; + fileSystems."/nix" = { + device = "/persist/nix"; + fsType = "none"; + options = [ "bind" ]; }; fileSystems."/var/vmail" = { device = "/dev/disk/by-uuid/23c44c93-5035-4e29-9e46-75c1c08f4cea";