Skip to content

Commit b7c3a65

Browse files
committed
snapshot
1 parent 692c685 commit b7c3a65

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

hosts/idols-ai/disko-fs.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@
132132
imports = [
133133
./impermanence_addon.nix
134134
];
135-
modules.desktop.rootfs.fsType = "btrfs";
136-
# modules.desktop.rootfs.btrfsBlockDevice = "/dev/disk/by-uuid/17df699e-6502-4205-955f-c456eb378d48";
137-
modules.desktop.rootfs.btrfsBlockDevice = "/dev/mapper/nixos-luks";
138-
modules.desktop.rootfs.retentionPeriod = 7;
139-
modules.desktop.rootfs.preBackupCommand = ''
135+
modules.desktop.impermanence-rootfs.fsType = "btrfs";
136+
# modules.desktop.impermanence-rootfs.btrfsBlockDevice = "/dev/disk/by-uuid/17df699e-6502-4205-955f-c456eb378d48";
137+
modules.desktop.impermanence-rootfs.btrfsBlockDevice = "/dev/mapper/nixos-luks";
138+
modules.desktop.impermanence-rootfs.retentionPeriod = 7;
139+
modules.desktop.impermanence-rootfs.preBackupCommand = ''
140140
[ -d /btrfs_tmp/root/etc/agenix ] && rm -rf /btrfs_tmp/root/etc/agenix || true
141141
'';
142142
}

hosts/idols-ai/impermanence_addon.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
}:
77
with lib;
88
let
9-
cfg = config.modules.desktop.rootfs;
9+
cfg = config.modules.desktop.impermanence-rootfs;
1010
diskoEnabled = config.disko ? devices;
1111
in
1212
{
13-
options.modules.desktop.rootfs = {
13+
options.modules.desktop.impermanence-rootfs = {
1414
fsType = mkOption {
1515
type = types.enum [
1616
"tmpfs"
@@ -73,7 +73,7 @@ in
7373
})
7474

7575
(mkIf (cfg.fsType == "tmpfs" && diskoEnabled) {
76-
disko.devices.nodev."/" = lib.mkDefault {
76+
disko.devices.nodev."/" = lib.mkForce {
7777
fsType = "tmpfs";
7878
mountOptions = [
7979
"relatime" # Update inode access times relative to modify/change time

0 commit comments

Comments
 (0)