about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-05-07 22:53:05 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-05-07 22:53:05 +0200
commit4c8f06d9b7e4589c5000e8ad8d64de7dacd1bc38 (patch)
treec048c614a5cc6bc2cede6fca81952c84c90bcc5a /modules
parentd3ea3797e65e04dddab5daca6f823d264a8f75ea (diff)
profiles/workstation: Use services.redshift
It's a lot more controllable running as a user service rather than
having it started with the X session, especially because I occasionally
tend to turn it off.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules')
-rw-r--r--modules/user/aszlig/profiles/workstation/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/user/aszlig/profiles/workstation/default.nix b/modules/user/aszlig/profiles/workstation/default.nix
index 9a5ef384..6741308a 100644
--- a/modules/user/aszlig/profiles/workstation/default.nix
+++ b/modules/user/aszlig/profiles/workstation/default.nix
@@ -131,12 +131,21 @@ in {
           ATTRS{idProduct}=="6001", OWNER="aszlig"
       '';
 
+      redshift = {
+        enable = true;
+        latitude = "48.428404";
+        longitude = "10.866007";
+        temperature.day = 5500;
+        temperature.night = 3500;
+        brightness.day = "1";
+        brightness.night = "0.6";
+      };
+
       xserver = {
         enable = true;
         layout = "dvorak";
 
         displayManager.sessionCommands = ''
-          ${pkgs.redshift}/bin/redshift -l 48.428404:10.866007 &
           ${pkgs.xorg.xrdb}/bin/xrdb "${pkgs.writeText "xrdb.config" ''
             Rxvt*font:                 vga
             Rxvt*background:           black