From a7ad2e37127ade10982095584de5c2e1dbb8d6e5 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 10 Mar 2020 23:01:46 +0000 Subject: [PATCH] Support redshift redshift is the f.lux of Linux; it filters blue light from your screen. --- configs/.config/nixpkgs/home.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configs/.config/nixpkgs/home.nix b/configs/.config/nixpkgs/home.nix index 16afec258..2a54e6ea4 100644 --- a/configs/.config/nixpkgs/home.nix +++ b/configs/.config/nixpkgs/home.nix @@ -123,6 +123,17 @@ # Services ############################################################################## + # Filter blue light from screen after sunset. + services.redshift = { + enable = true; + latitude = "51.49"; + longitude = "-0.18"; + # The redshift from isn't working on gLinux. + package = pkgs.writeShellScriptBin "redshift" '' + exec /usr/bin/redshift "$@" + ''; + }; + services.lorri.enable = true; services.gpg-agent = {