diff --git a/modules/default.nix b/modules/default.nix index e7967b5..40161a5 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -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; diff --git a/modules/lab-network.nix b/modules/lab-network.nix index b3aaa90..3a1a2f3 100644 --- a/modules/lab-network.nix +++ b/modules/lab-network.nix @@ -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; - }); + }; }