1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-27 17:07:44 +00:00

nix: also link superfreq config to /etc

This commit is contained in:
NotAShelf 2025-05-18 06:43:51 +03:00
parent 59d234e3ce
commit 6e2d5b33f9
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF

View file

@ -31,6 +31,10 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = [cfg.package]; environment.systemPackages = [cfg.package];
# This is necessary for the Superfreq CLI. The environment variable
# passed to the systemd service will take priority in read order.
environment.etc."superfreq.toml".source = cfgFile;
systemd.services.superfreq = { systemd.services.superfreq = {
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
conflicts = [ conflicts = [