From 94f54fad3d8180a7449e202066ba0f8a668507fd Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 28 Sep 2019 20:27:59 +0200 Subject: window-manager: run redshift on login screen --- modules/programs/window-manager.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/programs') diff --git a/modules/programs/window-manager.nix b/modules/programs/window-manager.nix index 1d3501f..12fc044 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 -- cgit 1.4.1