module.nix: filter nulls from config
This commit is contained in:
+3
-1
@@ -91,7 +91,9 @@ in {
|
|||||||
systemd.services.roowho2 = {
|
systemd.services.roowho2 = {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
ExecStart = "${lib.getExe' cfg.package "roowhod"} --config ${format.generate "roowho2-config.toml" cfg.settings}";
|
ExecStart = let
|
||||||
|
configFile = format.generate "roowho2-config.toml" (lib.filterAttrsRecursive (n: v: v != null) cfg.settings);
|
||||||
|
in "${lib.getExe' cfg.package "roowhod"} --config ${configFile}";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user