diff options
| author | 2025-03-02 10:28:49 +0300 | |
|---|---|---|
| committer | 2025-03-02 10:28:49 +0300 | |
| commit | 344cb1f7906d560bab4ac2f7b0db5c2b153084cf (patch) | |
| tree | 5d6500120e1c6bc65df4b0926bda37198e783ac3 /user-mora.nix | |
| parent | feat(mora): add `niri` from Git (diff) | |
| download | nixos-configuration-344cb1f7906d560bab4ac2f7b0db5c2b153084cf.tar.gz nixos-configuration-344cb1f7906d560bab4ac2f7b0db5c2b153084cf.tar.bz2 nixos-configuration-344cb1f7906d560bab4ac2f7b0db5c2b153084cf.tar.lz nixos-configuration-344cb1f7906d560bab4ac2f7b0db5c2b153084cf.tar.xz nixos-configuration-344cb1f7906d560bab4ac2f7b0db5c2b153084cf.tar.zst nixos-configuration-344cb1f7906d560bab4ac2f7b0db5c2b153084cf.zip | |
feat(mora): add `wl-gammarelay-rs`
Diffstat (limited to '')
| -rw-r--r-- | user-mora.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/user-mora.nix b/user-mora.nix index 867dac7..cd3f115 100644 --- a/user-mora.nix +++ b/user-mora.nix @@ -108,4 +108,27 @@ niri inputs.wezterm.packages.${pkgs.system}.default ]; + + ### + ### Extra Services + ### + systemd.user.services.wl-gammarelay-rs = let + wl-gammarelay-rs' = pkgs.writeShellScript "wl-gammarelay-rs" '' + ${pkgs.wl-gammarelay-rs}/bin/wl-gammarelay-rs & + sleep 1 + busctl --user -- set-property rs.wl-gammarelay /outputs/DP_2 rs.wl.gammarelay Brightness d 0.7 + busctl --user -- set-property rs.wl-gammarelay /outputs/DP_3 rs.wl.gammarelay Brightness d 0.75 + busctl --user -- set-property rs.wl-gammarelay /outputs/DP_4 rs.wl.gammarelay Brightness d 0.65 + wait + ''; + in { + Unit.PartOf = [ "graphical-session.target" ]; + Unit.After = [ "niri.service" ]; + Unit.Wants = [ "niri.service" ]; + Install.WantedBy = [ "graphical-session.target" ]; + Service = { + ExecStart = "${wl-gammarelay-rs'}"; + Restart = "on-failure"; + }; + }; } |
