mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-12-22 15:32:56 -05:00
Aly Raffauf
c7581ba6e1
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / rofi-bluetooth-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
22 lines
547 B
Nix
22 lines
547 B
Nix
{
|
|
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 = {
|
|
Install.WantedBy = lib.mkForce (lib.optional (cfg.desktop.hyprland.enable) "hyprland-session.target");
|
|
Service.Restart = lib.mkForce "no";
|
|
Unit.BindsTo = lib.optional (cfg.desktop.hyprland.enable) "hyprland-session.target";
|
|
};
|
|
};
|
|
}
|