From 055f4056db68669bc85d7094f706032d8ebb9955 Mon Sep 17 00:00:00 2001 From: Xory Date: Tue, 28 Oct 2025 16:18:48 +0200 Subject: [PATCH] fix: actually use impermanence --- hosts/voidspear/configuration.nix | 12 ++++++++++++ hosts/voidspear/hardware-configuration.nix | 8 ++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/hosts/voidspear/configuration.nix b/hosts/voidspear/configuration.nix index 871ca7b..83015cc 100644 --- a/hosts/voidspear/configuration.nix +++ b/hosts/voidspear/configuration.nix @@ -41,12 +41,24 @@ }; # Impermanence + + fileSystems."/" = { + device = "none"; + fsType = "tmpfs"; + neededForBoot = true; + }; + fileSystems."/persist" = { device = "/dev/disk/by-uuid/1578f380-e588-419b-ace0-f63e6a48ca39"; fsType = "ext4"; neededForBoot = true; }; + fileSystems."/nix" = { + device = "/persist/nix"; + options = [ "bind "]; + }; + environment.persistence."/persist" = { hideMounts = true; directories = [ diff --git a/hosts/voidspear/hardware-configuration.nix b/hosts/voidspear/hardware-configuration.nix index 0d9f4c4..4b6e568 100644 --- a/hosts/voidspear/hardware-configuration.nix +++ b/hosts/voidspear/hardware-configuration.nix @@ -13,10 +13,10 @@ boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/1578f380-e588-419b-ace0-f63e6a48ca39"; - fsType = "ext4"; - }; + # fileSystems."/" = + # { device = "/dev/disk/by-uuid/1578f380-e588-419b-ace0-f63e6a48ca39"; + # fsType = "ext4"; + # }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/4CB1-40B6";