about summary refs log tree commit diff stats
path: root/home-manager/config/gammastep
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-08-01 13:12:33 +0200
committerSoispha <soispha@vhack.eu>2023-08-01 13:15:55 +0200
commit8aba52ce3dc995f32728fbe892443737d9b6735c (patch)
treeb7b93da71734a87a17c96e17439438c46f821953 /home-manager/config/gammastep
parentFix(secrets/nheko/apzu): Update for new home server (diff)
downloadnixos-config-8aba52ce3dc995f32728fbe892443737d9b6735c.tar.gz
nixos-config-8aba52ce3dc995f32728fbe892443737d9b6735c.zip
Fix(hm/conf/gammastep): Use lighter settings on laptops
The laptop backlight, which is in most cases weaker, will further
reduce the effect, thus it is paramount, that the amount coming from
gammastep is reduced to account for that.
Diffstat (limited to 'home-manager/config/gammastep')
-rw-r--r--home-manager/config/gammastep/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/home-manager/config/gammastep/default.nix b/home-manager/config/gammastep/default.nix
index fd6a76b8..6090921b 100644
--- a/home-manager/config/gammastep/default.nix
+++ b/home-manager/config/gammastep/default.nix
@@ -1,14 +1,19 @@
 {
-  config,
   lib,
+  nixosConfig,
   ...
-}: {
+}: let
+  temp =
+    if nixosConfig.soispha.laptop.enable
+    then 2000
+    else 1300;
+in {
   services.gammastep = {
     enable = true;
     settings = {
       general = {
-        temp-day = lib.mkForce 1300;
-        temp-night = lib.mkForce 1300;
+        temp-day = lib.mkForce temp;
+        temp-night = lib.mkForce temp;
         gamma = "0.8:0.8:0.8";
         fade = 0;
         adjustment-method = "wayland";