create module system for machines

This commit is contained in:
Pim Kunis 2024-02-29 00:28:38 +01:00
parent 9ee519055b
commit e7f35bf1bd
3 changed files with 186 additions and 147 deletions
nixos/modules/networking

View file

@ -117,7 +117,7 @@ in {
networkConfig.Bridge = cfg.dmz.bridgeName;
};
})
(lib.optionalAttrs machine.isVirtualMachine {
(lib.optionalAttrs (machine.type == "virtual") {
"30-main-nic" = {
matchConfig.Name = "en*";