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 nixos manuals: bring back package references 2016-02-03 14:47:14 +01:00
audio Remove static uid/gid 2017-03-18 13:54:39 +01:00
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 nixos/treewide: remove boolean examples for options 2017-03-17 23:36:19 +01:00
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 hoogle service: fixups 2016-04-22 03:58:08 +02:00
editors Merge pull request #22508 from matthewbauer/remove-emacs24macport 2017-03-18 22:19:20 +01:00
games factorio: remove autosave-interval from command-line options 2017-01-25 21:39:37 +01:00
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 cups: split the $lib output 2017-03-12 18:36:30 +01:00
scheduling fcron: install systab 2017-04-23 11:44:04 +02:00
search nixos/modules: use defaultText where applicable 2016-11-21 16:35:15 +01:00
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 treewide: use boolToString function 2017-04-11 18:18:53 +02:00
ttys kmscon service: disable systemd-vconsole-setup 2017-03-01 13:47:34 +03:00
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