nixpkgs/nixos/modules/config
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
..
fonts treewide: use boolToString function 2017-04-11 18:18:53 +02:00
debug-info.nix docs: use overrideAttrs instead of overrideDerivation 2016-10-30 14:34:40 -04:00
gnu.nix fix indentation in several nixos option descriptions 2016-12-16 18:29:25 +01:00
i18n.nix nixos: allow supply customized locale package 2017-02-06 07:30:15 +02:00
krb5.nix Add kerberos mappings for MIT exchange server 2016-05-11 09:09:24 -04:00
ldap.nix ldap: Add option for NSS integration 2016-08-23 21:12:51 +02:00
networking.nix rename iana_etc to iana-etc 2017-03-28 22:35:15 +02:00
no-x-libs.nix dbus: rename useX11 option into x11Support, cleanup a bit 2015-03-29 23:28:30 +00:00
nsswitch.nix nsswitch: use libnss_resolve if resolved is enabled 2017-05-24 01:10:36 +01:00
power-management.nix nixos-generate-config: detect CPU governor 2017-01-02 17:20:28 +01:00
pulseaudio.nix nixos/xsession: use graphical systemd user target 2017-05-29 15:05:28 +02:00
shells-environment.nix environment.profileRelativeEnvVars: remove sbin from example 2017-05-09 08:51:04 +01:00
swap.nix nixos/…/swap.nix: add some safety assertions for randomEncryption 2016-08-31 15:29:11 +01:00
sysctl.nix tree-wide: remove uses of features.grsecurity 2017-05-14 15:08:51 +02:00
system-environment.nix types: loeOf -> listOf 2016-11-05 21:46:42 +01:00
system-path.nix vulkan-loader: allow validation layers to be enabled 2016-11-13 12:44:27 -04:00
timezone.nix timezone service: link localtime to /etc/zoneinfo instead of tzinfo directly 2016-10-11 16:55:52 +03:00
unix-odbc-drivers.nix unix-odbc-drivers module: update for new unixODBCDrivers 2016-04-26 23:58:11 +03:00
update-users-groups.pl update-users-groups.pl: Keep track of deallocated UIDs/GIDs 2017-03-29 18:13:18 +02:00
users-groups.nix users-groups module: add per-user packages 2017-05-12 20:30:22 +02:00
vpnc.nix nixos/vpnc: fix formatting of example 2016-02-27 22:25:39 +13:00
zram.nix modprobe service: drop kmod wrapper 2016-08-19 17:56:49 +03:00