From 8aba52ce3dc995f32728fbe892443737d9b6735c Mon Sep 17 00:00:00 2001 From: Soispha Date: Tue, 1 Aug 2023 13:12:33 +0200 Subject: 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. --- home-manager/config/gammastep/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'home-manager/config/gammastep/default.nix') 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"; -- cgit 1.4.1