From 4c8f06d9b7e4589c5000e8ad8d64de7dacd1bc38 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sat, 7 May 2016 22:53:05 +0200 Subject: 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 --- modules/user/aszlig/profiles/workstation/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'modules') 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 -- cgit 1.4.1