about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-03-10T23·02+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-03-10T23·07+0000
commit405be980692321c18f6c498be52f3615be198430 (patch)
tree8e963e8841db39eae339ff71ccc39823f30d1069 /configs
parenta7ad2e37127ade10982095584de5c2e1dbb8d6e5 (diff)
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.
Diffstat (limited to 'configs')
-rw-r--r--configs/.config/nixpkgs/home.nix5
1 files changed, 5 insertions, 0 deletions
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;