diff options
author | makefu <github@syntax-fehler.de> | 2020-04-21 21:52:12 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2020-04-21 21:52:12 +0200 |
commit | aaacb5f31c9e87b09f36cfbffcdd8231fb8a4fe8 (patch) | |
tree | 6a358fa5135fd214cc4aa4f43527d60820d4317b /krebs/3modules/reaktor2.nix | |
parent | 0b371833e9ef68fd891fac65a657d8e38b5b3fad (diff) | |
parent | 077b2783d19ab0377c1fa8ef6fbfdf5ef7481a7f (diff) |
Merge remote-tracking branch 'lass/20.03' into 20.03
Diffstat (limited to 'krebs/3modules/reaktor2.nix')
-rw-r--r-- | krebs/3modules/reaktor2.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/krebs/3modules/reaktor2.nix b/krebs/3modules/reaktor2.nix index 837a9bea7..fcc453fa4 100644 --- a/krebs/3modules/reaktor2.nix +++ b/krebs/3modules/reaktor2.nix @@ -45,6 +45,10 @@ with import <stockholm/lib>; default = self.config.port == "6697"; type = types.bool; }; + API.listen = mkOption { + default = null; + type = types.nullOr types.str; + }; }; })); }; @@ -65,9 +69,11 @@ with import <stockholm/lib>; ExecStart = let configFile = pkgs.writeJSON configFileName configValue; configFileName = "${cfg.systemd-service-name}.config.json"; - configValue = recursiveUpdate { - logTime = false; - } (removeAttrs cfg ["_module"]); + configValue = stripAttr ( + recursiveUpdate { + logTime = false; + } (removeAttrs cfg ["_module"]) + ); in "${pkgs.reaktor2}/bin/reaktor ${configFile}"; Restart = "always"; RestartSec = "30"; |