module.nix: filter nulls from config
Build and test / check (push) Successful in 1m9s
Build and test / test (push) Successful in 2m12s
Build and test / build (push) Successful in 2m37s
Build and test / docs (push) Successful in 3m25s

This commit is contained in:
2026-06-24 13:37:18 +09:00
parent a6a1bd2324
commit 71d2b72c34
+3 -1
View File
@@ -91,7 +91,9 @@ in {
systemd.services.roowho2 = {
serviceConfig = {
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";
DynamicUser = true;