fix(lab-network): Don't use mkForce

This commit is contained in:
sinavir 2024-12-21 12:33:04 +01:00
parent 9b794dff35
commit 9daab9a609
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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;
});
};
}