create module system for machines
This commit is contained in:
parent
9ee519055b
commit
e7f35bf1bd
3 changed files with 186 additions and 147 deletions
nixos/modules/networking
|
@ -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*";
|
||||
|
||||
|
|
Reference in a new issue