about summary refs log tree commit diff
path: root/configs/.config/nixpkgs/home.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configs/.config/nixpkgs/home.nix')
-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 = {