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-notify.enable = false;
dgn-records.enable = false; dgn-records.enable = false;
dgn-network.enable = false;
# TODO think about how to use netbox with lab # TODO think about how to use netbox with lab
dgn-netbox-agent.enable = false; dgn-netbox-agent.enable = false;

View file

@ -12,7 +12,6 @@ let
mapAttrs' mapAttrs'
mkEnableOption mkEnableOption
mkIf mkIf
mkForce
; ;
net' = meta.network.${name}; net' = meta.network.${name};
@ -43,7 +42,7 @@ in
default = true; default = true;
}; };
config = mkIf cfg.enable (mkForce { config = mkIf cfg.enable {
networking = { networking = {
inherit (net') hostId; inherit (net') hostId;
@ -55,5 +54,5 @@ in
}; };
systemd.network.networks = mapAttrs' mkInterface net'.interfaces; systemd.network.networks = mapAttrs' mkInterface net'.interfaces;
}); };
} }