From dea2425e274a9fe88c524ea3b35164a1fe259988 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 13 Aug 2024 21:47:07 +0200 Subject: [PATCH] fixup! cluster/simulacrum/nowhere: make optional --- cluster/simulacrum/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cluster/simulacrum/default.nix b/cluster/simulacrum/default.nix index 26eca7e..df15ad6 100644 --- a/cluster/simulacrum/default.nix +++ b/cluster/simulacrum/default.nix @@ -59,11 +59,13 @@ testers.runNixOSTest { imports = [ serviceConfig.simulacrum.settings ./nowhere - { - nodes.nowhere.imports = [ - config.flake.nixosModules.port-magic - ]; - } + ({ config, ... }: { + config = lib.mkIf config.nowhere.enable { + nodes.nowhere.imports = [ + lift.flake.nixosModules.port-magic + ]; + }; + }) ] ++ allAugments; _module.args = {