all repos — nixfiles @ 94f54fad3d8180a7449e202066ba0f8a668507fd

System and user configuration, managed by nix and home-manager

window-manager: run redshift on login screen
Alan Pearce alan@alanpearce.eu
Sat, 28 Sep 2019 20:27:59 +0200
commit

94f54fad3d8180a7449e202066ba0f8a668507fd

parent

83576e0142e1973411ddb635af07e73e8c35372c

1 files changed, 9 insertions(+), 0 deletions(-)

jump to
M modules/programs/window-manager.nixmodules/programs/window-manager.nix
@@ -22,6 +22,15 @@ time = 5;     };
   };
 
+  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