fix(lab-network): Don't use mkForce
This commit is contained in:
parent
9b794dff35
commit
9daab9a609
2 changed files with 3 additions and 3 deletions
|
@ -14,6 +14,7 @@
|
|||
dgn-notify.enable = false;
|
||||
|
||||
dgn-records.enable = false;
|
||||
dgn-network.enable = false;
|
||||
|
||||
# TODO think about how to use netbox with lab
|
||||
dgn-netbox-agent.enable = false;
|
||||
|
|
|
@ -12,7 +12,6 @@ let
|
|||
mapAttrs'
|
||||
mkEnableOption
|
||||
mkIf
|
||||
mkForce
|
||||
;
|
||||
|
||||
net' = meta.network.${name};
|
||||
|
@ -43,7 +42,7 @@ in
|
|||
default = true;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable (mkForce {
|
||||
config = mkIf cfg.enable {
|
||||
networking = {
|
||||
inherit (net') hostId;
|
||||
|
||||
|
@ -55,5 +54,5 @@ in
|
|||
};
|
||||
|
||||
systemd.network.networks = mapAttrs' mkInterface net'.interfaces;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue