move some apps to namespace

This commit is contained in:
mjallen18
2025-08-21 19:06:51 -05:00
parent bd64283f04
commit 0e066cb4d7
25 changed files with 149 additions and 135 deletions

View File

@@ -2,11 +2,12 @@
{
config,
lib,
namespace,
...
}:
with lib;
let
cfg = config.mjallen.impermanence;
cfg = config.${namespace}.impermanence;
in
{
imports = [ ./options.nix ];
@@ -107,14 +108,14 @@ in
config.fileSystems."/".fsType == "btrfs" || config.fileSystems."/".fsType == "bcachefs" || config.fileSystems."/".fsType == "tmpfs"
else
false;
message = "rootfs must be btrfs, bcachefs, or tmpfs";
message = "rootfs must be btrfs, bcachefs, or tmpfs; not " + config.fileSystems."/".fsType;
}
{
assertion =
if hasAttr "/" config.fileSystems && (config.fileSystems."/".fsType == "btrfs" || config.fileSystems."/".fsType == "bcachefs") then
any (
t: t == "subvol=root" || t == "subvol=/root" || t == "X-mount.subdir=root"
t: t == "subvol=root" || t == "subvol=/root" || t == "X-mount.subdir=subvolumes/root"
) config.fileSystems."/".options
else
true;