idiosyn/home/config/nil/gammarelay.nix

23 lines
514 B
Nix
Raw Normal View History

2024-08-25 19:10:52 +02:00
{ ... }: { config, lib, pkgs, ... }@args:
let
osConfig = args.osConfig or { };
in lib.mkIf (osConfig.hardware.graphics.enable or false) {
systemd.user.services = {
gammarelay = {
Unit = {
Description = "Display temperature and brightness control";
};
Service = {
BusName = "rs.wl-gammarelay";
ExecStart = lib.getExe pkgs.wl-gammarelay-rs;
Restart = "on-failure";
};
Install = {
WantedBy = [ "default.target" ];
};
};
};
}