rename machine type -> kind
This commit is contained in:
parent
45d9ab3cb7
commit
904098c877
6 changed files with 26 additions and 26 deletions
|
@ -48,7 +48,7 @@ in {
|
|||
|
||||
config = {
|
||||
networking = {
|
||||
domain = if machine.type == "physical" then "hyp" else "dmz";
|
||||
domain = if machine.kind == "physical" then "hyp" else "dmz";
|
||||
nftables.enable = true;
|
||||
useDHCP = false;
|
||||
|
||||
|
@ -117,7 +117,7 @@ in {
|
|||
networkConfig.Bridge = cfg.dmz.bridgeName;
|
||||
};
|
||||
})
|
||||
(lib.optionalAttrs (machine.type == "virtual") {
|
||||
(lib.optionalAttrs (machine.kind == "virtual") {
|
||||
"30-main-nic" = {
|
||||
matchConfig.Name = "en*";
|
||||
|
||||
|
|
Reference in a new issue