feat(desktop): replace redshift with gammastep

nixos
Moritz Böhme 2023-04-09 19:26:03 +02:00
parent 37c4cc70e3
commit 5c2cb5feb4
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
4 changed files with 19 additions and 19 deletions

View File

@ -97,7 +97,7 @@ with lib; {
mullvad.enable = true; mullvad.enable = true;
openconnect.enable = true; openconnect.enable = true;
printing.enable = true; printing.enable = true;
redshift.enable = true; gammastep.enable = true;
wireguard.enable = true; wireguard.enable = true;
}; };
}; };

View File

@ -10,7 +10,7 @@
./openconnect.nix ./openconnect.nix
./picom.nix ./picom.nix
./printing.nix ./printing.nix
./redshift.nix ./gammastep.nix
./wireguard.nix ./wireguard.nix
]; ];
} }

View File

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.my.services.gammastep;
in
{
options.my.services.gammastep.enable = mkEnableOption "gammastep";
config = lib.mkIf cfg.enable {
home-manager.users.moritz.services.gammastep = {
enable = true;
latitude = 52.3;
longitude = 12.4;
};
};
}

View File

@ -1,17 +0,0 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.my.services.redshift;
in
{
options.my.services.redshift.enable = mkEnableOption "redshift";
config = lib.mkIf cfg.enable {
services.redshift.enable = true;
location = {
latitude = 52.3;
longitude = 12.4;
};
};
}