user updates
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
@@ -105,7 +104,9 @@ in
|
||||
{
|
||||
assertion =
|
||||
if hasAttr "/" config.fileSystems then
|
||||
config.fileSystems."/".fsType == "btrfs" || config.fileSystems."/".fsType == "bcachefs" || config.fileSystems."/".fsType == "tmpfs"
|
||||
config.fileSystems."/".fsType == "btrfs"
|
||||
|| config.fileSystems."/".fsType == "bcachefs"
|
||||
|| config.fileSystems."/".fsType == "tmpfs"
|
||||
else
|
||||
false;
|
||||
message = "rootfs must be btrfs, bcachefs, or tmpfs; not " + config.fileSystems."/".fsType;
|
||||
@@ -113,7 +114,10 @@ in
|
||||
|
||||
{
|
||||
assertion =
|
||||
if hasAttr "/" config.fileSystems && (config.fileSystems."/".fsType == "btrfs" || config.fileSystems."/".fsType == "bcachefs") then
|
||||
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=subvolumes/root"
|
||||
) config.fileSystems."/".options
|
||||
|
||||
Reference in New Issue
Block a user