Add assertion to prevent enabling autoWipBtrfs without impermanence

This commit is contained in:
ItsDrike 2024-04-16 12:29:22 +02:00
parent 15947ba93a
commit edade19d64
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -85,4 +85,13 @@ in
}; };
}; };
}; };
config = {
assertions = [
{
assertion = cfg.autoWipeBtrfs.enable -> cfg.root.enable;
message = "myOptions.system.impermanence.autoWipeBtrfs requires myOptions.system.impermanence.root to be enabled.";
}
];
};
} }