about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-03-10T23·01+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-03-10T23·07+0000
commita7ad2e37127ade10982095584de5c2e1dbb8d6e5 (patch)
tree1e97f0d85a4adf6e754a5bc552c27811919b3de8 /configs
parent8c0a56a03e7e7dd4a5056521491392728771f508 (diff)
Support redshift
redshift is the f.lux of Linux; it filters blue light from your screen.
Diffstat (limited to 'configs')
-rw-r--r--configs/.config/nixpkgs/home.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/configs/.config/nixpkgs/home.nix b/configs/.config/nixpkgs/home.nix
index 16afec2584f8..2a54e6ea4904 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 <nixpkgs> isn't working on gLinux.
+    package = pkgs.writeShellScriptBin "redshift" ''
+      exec /usr/bin/redshift "$@"
+    '';
+  };
+
   services.lorri.enable = true;
 
   services.gpg-agent = {