From 0510ad5408d3d9c87aab96b3109c436c0b88ba81 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Wed, 23 Aug 2023 01:39:04 +0200 Subject: [PATCH] gammastep (redshift) --- modules/desktop/sway.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/desktop/sway.nix b/modules/desktop/sway.nix index 871b6e8..198a151 100644 --- a/modules/desktop/sway.nix +++ b/modules/desktop/sway.nix @@ -228,6 +228,20 @@ }; }; + # Gammestep automatically adjusts the screen's colour temperature. It's + # basically redshift for wayland. + # https://gitlab.com/chinstrap/gammastep + # https://nixos.wiki/wiki/Gammastep + services.gammastep = { + enable = true; + dawnTime = "07:00"; + duskTime = "23:00"; + temperature = { + day = 6500; # neutral + night = 4500; + }; + }; + home.sessionVariables = { # The firefox-wayland package works with wayland without any further # configuration, but tor-browser doesn't.