updates
This commit is contained in:
parent
d266a48b98
commit
07020f01c3
15 changed files with 321 additions and 86 deletions
|
@ -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";
|
||||
# }
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue