Skip to content

nix: point the daemon at the generated config - #117

Merged
NotAShelf merged 1 commit into
mainfrom
faukah/push-krxzqzryplzw
Oct 24, 2026
Merged

NotAShelf merged 1 commit into
mainfrom
faukah/push-krxzqzryplzw

Conversation

@faukah

@faukah faukah commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

The NixOS module wrote services.watt.settings to /etc/watt.toml but never told the service where it was. Watt only reads --config or WATT_CONFIG, so the daemon quietly ran its built-in default config.

This sets WATT_CONFIG to the generated file on systemd.services.watt. Because the value is a store path, changing the settings also restarts the unit, but I suppose that's not really an issue in practise.

The module wrote /etc/watt.toml but never passed it to the service, so
the daemon ignored services.watt.settings and ran the builtin default.
Set WATT_CONFIG on the unit.
@faukah
faukah requested a review from NotAShelf October 23, 2026 22:51
@NotAShelf
NotAShelf merged commit 6d51861 into main Oct 24, 2026
2 checks passed
@faukah
faukah deleted the faukah/push-krxzqzryplzw branch October 24, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants