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 {}; + }; }; }; }