From 405be980692321c18f6c498be52f3615be198430 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 10 Mar 2020 23:02:30 +0000 Subject: Manage xsession with home-manager redshift didn't properly work because it couldn't read the DISPLAY environment variable. I can fix this ad-hoc with `systemctl --user import-environment DISPLAY`, but home-manager will do this automatically if I allow it to manage my xsession. --- configs/.config/nixpkgs/home.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configs') diff --git a/configs/.config/nixpkgs/home.nix b/configs/.config/nixpkgs/home.nix index 2a54e6ea4904..7530f018f07b 100644 --- a/configs/.config/nixpkgs/home.nix +++ b/configs/.config/nixpkgs/home.nix @@ -123,6 +123,11 @@ # Services ############################################################################## + xsession = { + enable = true; + windowManager.command = "dbus-launch --exit-with-session wpcarros-emacs"; + }; + # Filter blue light from screen after sunset. services.redshift = { enable = true; -- cgit 1.4.1