nixpkgs/nixos/modules/services
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
..
admin/salt salt-minion: link to configuration documentation 2017-05-11 07:12:04 +01:00
amqp
audio
backup znapzend service: options for logging/nodestroy/restart on failure 2017-05-22 21:47:51 +01:00
cluster Merge pull request #24921 from peterhoeg/f/k8s 2017-04-15 10:43:25 +02:00
computing
continuous-integration buildbot: fix maintainer 2017-05-23 00:02:23 -04:00
databases clickhouse: init at 1.1.54190 2017-04-27 13:25:58 +00:00
desktops gnome-disks: add D-Bus service 2017-05-06 19:40:37 +02:00
development
editors
games
hardware Merge pull request #21227 from lheckemann/vgaswitcheroo 2017-04-28 12:47:00 +01:00
logging SystemdJournal2Gelf.service: new service 2017-05-25 19:04:40 +01:00
mail nixos/mlmmj: fix newline problems with multiple lists 2017-05-25 10:40:50 -05:00
misc Revert "gitlab service: fix preStart script" 2017-05-23 00:06:00 +02:00
monitoring nixos/xsession: use graphical systemd user target 2017-05-29 15:05:28 +02:00
network-filesystems u9fs service: grant capabilities for running as nobody 2017-05-26 11:41:10 -05:00
networking tinc: Mention in docs that the host name may not be used verbatim. (#26157) 2017-05-27 16:31:25 +01:00
printing
scheduling fcron: install systab 2017-04-23 11:44:04 +02:00
search
security Simple proof of concept for how to do other types of services 2017-05-26 18:14:31 -04:00
system Merge pull request #23024 from phile314/cloud-init-update 2017-05-22 16:33:31 +02:00
torrent
ttys
web-apps mattermost service: PrivateTmp broken with local postgresql 2017-05-08 09:18:32 +02:00
web-servers varnish module: remove unneeded gcc runtime dependency 2017-05-17 16:14:29 +02:00
x11 nixos/xsession: use graphical systemd user target 2017-05-29 15:05:28 +02:00