From f473e2559fc4691ddd9e1e765e4b5f71719498e6 Mon Sep 17 00:00:00 2001 From: Aubrey Taylor Date: Sun, 22 Dec 2024 00:38:05 -0600 Subject: [PATCH] mkIf --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 526101a..14e66b5 100644 --- a/flake.nix +++ b/flake.nix @@ -98,7 +98,7 @@ }; }; }; - config = if config.services.smo-server.enable then { + config = lib.mkIf config.services.smo-server.enable { systemd.services.smo-server = with config.services.smo-server; { wantedBy = ["multi-user.target"]; after = ["network.target"]; @@ -111,7 +111,7 @@ in ''${self.packages.${system}.default.outPath}/bin/smo-server -t ${tcpPort} -u ${udpPort}''; }; }; - } else {}; + }; }; }; }