2024-08-02 17:58:08 -04:00
|
|
|
{
|
|
|
|
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";
|
|
|
|
};
|
2024-08-11 23:43:48 -04:00
|
|
|
|
|
|
|
systemd.user.services.gammastep = {
|
2024-09-15 00:32:31 -04:00
|
|
|
Install.WantedBy = lib.mkForce (lib.optional (cfg.desktop.hyprland.enable) "hyprland-session.target" ++ lib.optional (cfg.desktop.sway.enable) "sway-session.target" ++ lib.optional (cfg.desktop.river.enable) "river-session.target");
|
2024-08-11 23:43:48 -04:00
|
|
|
Service.Restart = lib.mkForce "no";
|
2024-09-15 00:32:31 -04:00
|
|
|
Unit.BindsTo = lib.optional (cfg.desktop.hyprland.enable) "hyprland-session.target" ++ lib.optional (cfg.desktop.sway.enable) "sway-session.target" ++ lib.optional (cfg.desktop.river.enable) "river-session.target";
|
2024-08-11 23:43:48 -04:00
|
|
|
};
|
2024-08-02 17:58:08 -04:00
|
|
|
};
|
|
|
|
}
|