summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2019-09-28 20:27:59 +0200
committerAlan Pearce2019-09-28 22:16:43 +0200
commit94f54fad3d8180a7449e202066ba0f8a668507fd (patch)
tree72113f70edb574777f9d540e9ce3ff95f4a8f63e /modules
parent83576e0142e1973411ddb635af07e73e8c35372c (diff)
downloadnixfiles-94f54fad3d8180a7449e202066ba0f8a668507fd.tar.lz
nixfiles-94f54fad3d8180a7449e202066ba0f8a668507fd.tar.zst
nixfiles-94f54fad3d8180a7449e202066ba0f8a668507fd.zip
window-manager: run redshift on login screen
Diffstat (limited to 'modules')
-rw-r--r--modules/programs/window-manager.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/programs/window-manager.nix b/modules/programs/window-manager.nix
index 1d3501fb..12fc0448 100644
--- a/modules/programs/window-manager.nix
+++ b/modules/programs/window-manager.nix
@@ -22,6 +22,15 @@
     };
   };
 
+  services.xserver.displayManager.setupCommands = ''
+    ${pkgs.redshift}/bin/redshift \
+      -l ${toString config.services.redshift.latitude}:${toString config.services.redshift.longitude} \
+      -t ${toString config.services.redshift.temperature.day}:${toString config.services.redshift.temperature.night} \
+      -b 1:1 \
+      -o \
+      -r \
+  '';
+
   environment.systemPackages = with pkgs; [
     dmenu
     dunst