From 6025b6c4f1167d3d8b212387e15dd184772125e1 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Wed, 20 Aug 2025 22:09:53 -0500 Subject: [PATCH] bcfs root? --- modules/nixos/impermanence/default.nix | 56 +++++++++++++------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/modules/nixos/impermanence/default.nix b/modules/nixos/impermanence/default.nix index 7bb45f0..c85e1cd 100755 --- a/modules/nixos/impermanence/default.nix +++ b/modules/nixos/impermanence/default.nix @@ -151,36 +151,36 @@ with lib; bcachefs subvolume create /root_tmp/root ''; }; - assertions = [ - { - assertion = hasAttr "/" config.fileSystems; - message = "To use impermanence, you need to define a root volume"; - } + # assertions = [ + # { + # assertion = hasAttr "/" config.fileSystems; + # message = "To use impermanence, you need to define a root volume"; + # } - { - assertion = - if hasAttr "/" config.fileSystems then - config.fileSystems."/".fsType == "btrfs" || config.fileSystems."/".fsType == "bcachefs" - else - false; - message = "rootfs must be btrfs or bcachefs"; - } + # { + # assertion = + # if hasAttr "/" config.fileSystems then + # config.fileSystems."/".fsType == "btrfs" || config.fileSystems."/".fsType == "bcachefs" + # else + # false; + # message = "rootfs must be btrfs or bcachefs"; + # } - { - assertion = - if hasAttr "/" config.fileSystems then - any ( - t: t == "subvol=root" || t == "subvol=/root" || t == "X-mount.subdir=root" - ) config.fileSystems."/".options - else - false; - message = "rootfs must mount subvolume root"; - } - { - assertion = !config.boot.isContainer; - message = "impermanence is not supported in containers"; - } - ]; + # { + # assertion = + # if hasAttr "/" config.fileSystems then + # any ( + # t: t == "subvol=root" || t == "subvol=/root" || t == "X-mount.subdir=root" + # ) config.fileSystems."/".options + # else + # false; + # message = "rootfs must mount subvolume root"; + # } + # { + # assertion = !config.boot.isContainer; + # message = "impermanence is not supported in containers"; + # } + # ]; fileSystems."/persistent" = { neededForBoot = true;