From 5c2cb5feb4fdfed8f457849038e34729bb6884cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sun, 9 Apr 2023 19:26:03 +0200 Subject: [PATCH] feat(desktop): replace redshift with gammastep --- modules/profiles/desktop.nix | 2 +- modules/services/default.nix | 2 +- modules/services/gammastep.nix | 17 +++++++++++++++++ modules/services/redshift.nix | 17 ----------------- 4 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 modules/services/gammastep.nix delete mode 100644 modules/services/redshift.nix diff --git a/modules/profiles/desktop.nix b/modules/profiles/desktop.nix index 7241498..29d9f23 100644 --- a/modules/profiles/desktop.nix +++ b/modules/profiles/desktop.nix @@ -97,7 +97,7 @@ with lib; { mullvad.enable = true; openconnect.enable = true; printing.enable = true; - redshift.enable = true; + gammastep.enable = true; wireguard.enable = true; }; }; diff --git a/modules/services/default.nix b/modules/services/default.nix index d63a582..2ec3a7f 100644 --- a/modules/services/default.nix +++ b/modules/services/default.nix @@ -10,7 +10,7 @@ ./openconnect.nix ./picom.nix ./printing.nix - ./redshift.nix + ./gammastep.nix ./wireguard.nix ]; } diff --git a/modules/services/gammastep.nix b/modules/services/gammastep.nix new file mode 100644 index 0000000..d951c1d --- /dev/null +++ b/modules/services/gammastep.nix @@ -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; + }; + }; +} diff --git a/modules/services/redshift.nix b/modules/services/redshift.nix deleted file mode 100644 index 6e75b5e..0000000 --- a/modules/services/redshift.nix +++ /dev/null @@ -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; - }; - }; -}