nixpkgs/nixos/modules
Franz Pletz 1e95e114e5
nixos/xsession: use graphical systemd user target
While systemd suggests using the pre-defined graphical-session user
target, I found that this interface is difficult to use. Additionally,
no other major distribution, even in their unstable versions, currently
use this mechanism.

The window or desktop manager is supposed to run in a systemd user service
which activates graphical-session.target and the user services that are
binding to this target. The issue is that we can't elegantly pass the
xsession environment to the window manager session, in particular
whereas the PassEnvironment option does work for DISPLAY, it for some
mysterious reason won't for PATH.

This commit implements a new graphical user target that works just like
default.target. Services which should be run in a graphical session just
need to declare wantedBy graphical.target. The graphical target will be
activated in the xsession before executing the window or display manager.

Fixes #17858.
2017-05-29 15:05:28 +02:00
..
config nixos/xsession: use graphical systemd user target 2017-05-29 15:05:28 +02:00
hardware nitrokey module: init 2017-05-26 00:47:46 +02:00
i18n/input-method Remove top-level kde5 attribute 2017-02-27 11:49:10 -06:00
installer sd-image-*.nix: Drop minimal profile 2017-05-14 23:52:47 +03:00
misc Merge branch 'master' into clickhouse 2017-05-01 07:33:31 +02:00
profiles hardware.enableRedistributableFirmware: fix spelling error 2017-05-09 20:13:15 +01:00
programs nixos/xsession: use graphical systemd user target 2017-05-29 15:05:28 +02:00
security nixos/security/acme: fix acme folder permissions 2017-05-11 18:49:26 +02:00
service-managers Simple proof of concept for how to do other types of services 2017-05-26 18:14:31 -04:00
services nixos/xsession: use graphical systemd user target 2017-05-29 15:05:28 +02:00
system systemd-nspawn: relax PrivateUsers check 2017-05-27 08:27:47 +01:00
tasks typo: powerManagment -> powerManagement (#25813) 2017-05-16 18:22:44 +02:00
testing kdm: drop service 2017-02-11 13:55:09 -05:00
virtualisation lxd: 2.0.2 -> 2.12 (#25685) 2017-05-24 19:29:38 +01:00
module-list.nix Merge pull request #25565 from KaiHa/nitrokey-app-1.0 2017-05-27 02:43:22 +02:00
rename.nix programs.zsh: rename oh-my-zsh to ohMyZsh 2017-05-25 10:51:26 +02:00