aboutsummaryrefslogtreecommitdiff
path: root/hosts/enode
diff options
context:
space:
mode:
authorIsabella Bastaja <isabella@sorre.xyz>2026-10-26 22:05:45 +0100
committerIsabella Bastaja <isabella@sorre.xyz>2026-10-27 01:27:22 +0100
commit1c06f302d9fcdf8ff28b07778540bce7a7cc4c49 (patch)
treed5dba44d7ed771b5d02960d80b33f9a88d2df76d /hosts/enode
parent74c14596300910939578ea080d0167a221e438f7 (diff)
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.
Diffstat (limited to 'hosts/enode')
-rw-r--r--hosts/enode/impermenance.nix8
1 files 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"
];