From 9daab9a609a27b9bc57a82a64b0766f645da9a3c Mon Sep 17 00:00:00 2001 From: sinavir Date: Sat, 21 Dec 2024 12:33:04 +0100 Subject: [PATCH] fix(lab-network): Don't use mkForce --- modules/default.nix | 1 + modules/lab-network.nix | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) 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; - }); + }; }