This commit is contained in:
Vivian 2024-08-19 18:21:56 +02:00
parent d266a48b98
commit 07020f01c3
15 changed files with 321 additions and 86 deletions

View file

@ -74,16 +74,16 @@ in {
# TODO: Open Firewall
assertions = [
{
assertion = config.meta.mac != null;
message =
"${config.networking.fqdnOrHostName} is missing a mac address";
}
{
assertion = !config.meta.isLaptop -> config.meta.ipv4 != null;
message =
"${config.networking.fqdnOrHostName} needs ipv4 address set as it is not a laptop";
}
# {
# assertion = config.meta.mac != null;
# message =
# "${config.networking.fqdnOrHostName} is missing a mac address";
# }
# {
# assertion = !config.meta.isLaptop -> config.meta.ipv4 != null;
# message =
# "${config.networking.fqdnOrHostName} needs ipv4 address set as it is not a laptop";
# }
];
};
}