From 1c06f302d9fcdf8ff28b07778540bce7a7cc4c49 Mon Sep 17 00:00:00 2001 From: Isabella Bastaja Date: Mon, 26 Oct 2026 22:05:45 +0100 Subject: enode: fix impermenance config Use partlabel instead of label since that's what systemd uses when booting ("start job runnning for /dev/disk/by-partlabel/..."). Align disko persist directory mount with where the impermenance module expects it to be. --- hosts/enode/impermenance.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/enode/impermenance.nix b/hosts/enode/impermenance.nix index c15ea85..3401e8e 100644 --- a/hosts/enode/impermenance.nix +++ b/hosts/enode/impermenance.nix @@ -1,6 +1,6 @@ { utils, ... }: { - # Use /persist as the persistence root, matching Disko's mountpoint - environment.persistence."/persist" = { + # Use /var/lib/persist as the persistence root, matching Disko's mountpoint + environment.persistence."/var/lib/persist" = { hideMounts = true; directories = [ "/var/lib/nixos" @@ -33,10 +33,10 @@ # Wait for the disk to appear requires = [ - "${utils.escapeSystemPath "/dev/disk/by-label/root"}.device" + "${utils.escapeSystemPath "/dev/disk/by-partlabel/root"}.device" ]; after = [ - "${utils.escapeSystemPath "/dev/disk/by-label/root"}.device" + "${utils.escapeSystemPath "/dev/disk/by-partlabel/root"}.device" # Allow hibernation to resume before trying to alter any data "local-fs-pre.target" ]; -- cgit v1.3.1