nixcfg/homeManagerModules/services/gammastep/default.nix

22 lines
547 B
Nix
Raw Permalink Normal View History

{
config,
lib,
...
}: let
cfg = config.ar.home;
in {
config = lib.mkIf cfg.services.gammastep.enable {
services.gammastep = {
enable = true;
latitude = lib.mkDefault "33.74";
longitude = lib.mkDefault "-84.38";
};
systemd.user.services.gammastep = {
2024-12-08 22:16:10 -05:00
Install.WantedBy = lib.mkForce (lib.optional (cfg.desktop.hyprland.enable) "hyprland-session.target");
Service.Restart = lib.mkForce "no";
2024-12-08 22:16:10 -05:00
Unit.BindsTo = lib.optional (cfg.desktop.hyprland.enable) "hyprland-session.target";
};
};
}