assertions
This commit is contained in:
@@ -50,6 +50,17 @@ in
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = lib.hasPrefix "/" cfg.persistencePath;
|
||||
message = "mjallen.impermanence.persistencePath must be an absolute path (got \"${cfg.persistencePath}\").";
|
||||
}
|
||||
{
|
||||
assertion = cfg.persistencePath != "/";
|
||||
message = "mjallen.impermanence.persistencePath must not be the filesystem root \"/\".";
|
||||
}
|
||||
];
|
||||
|
||||
environment.persistence."/nix/persist/system" = {
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
|
||||
Reference in New Issue
Block a user