nixpkgs/nixos/modules/programs
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
..
bash bash-completion: change attribute name 2016-09-28 17:46:29 +02:00
command-not-found fix 'command-not-found: is a directory' error 2017-04-28 23:11:21 -04:00
zsh programs.zsh: rename oh-my-zsh to ohMyZsh 2017-05-25 10:51:26 +02:00
adb.nix nixos/treewide: remove boolean examples for options 2017-03-17 23:36:19 +01:00
atop.nix nixos: add some missing '.' in option descriptions 2014-06-24 21:25:11 +02:00
blcr.nix Get all lib functions from lib, not pkgs.lib, in modules 2014-07-02 12:28:18 -04:00
browserpass.nix browserpass: switch build source to git HEAD 2017-04-10 23:45:41 +02:00
cdemu.nix nixos/cdemu: use system kernel modules 2016-01-12 14:44:41 +03:00
chromium.nix chromium module: add support for chromium policies as nixos module 2016-12-10 20:45:16 +01:00
dconf.nix gdm: Add very experimental display manager 2014-08-12 11:23:42 +02:00
environment.nix NixOS: fix XCURSOR_PATH expansion 2017-05-23 18:53:55 +02:00
fish.nix fish: (NixOS only) source configuration sections anew in all child shells 2017-05-19 21:00:24 -07:00
freetds.nix nixos/freetds: fix formatting of example 2016-02-27 22:25:39 +13:00
gphoto2.nix nixos/treewide: remove boolean examples for options 2017-03-17 23:36:19 +01:00
info.nix Make it possible to disable "info" 2016-09-05 14:53:27 +02:00
java.nix nixos/modules: use defaultText where applicable 2016-11-21 16:35:15 +01:00
kbdlight.nix More mistake fixes 2017-01-29 05:45:43 -06:00
light.nix More mistake fixes 2017-01-29 05:45:43 -06:00
man.nix nixos programs.man.enable: improve description 2017-01-24 09:59:54 +01:00
mosh.nix nixos/treewide: remove boolean examples for options 2017-03-17 23:36:19 +01:00
mtr.nix programs.mtr: init setcap-wrapper 2017-02-17 20:18:19 +01:00
nano.nix nano: add nix syntax hightlight, nano module: provide default (#21912) 2017-01-18 12:05:30 +01:00
oblogout.nix oblogout: init at 2009-11-18 2016-10-23 11:45:30 +02:00
qt5ct.nix qt5ct: add a nixos module to enable qt5ct 2017-03-29 06:17:23 -03:00
screen.nix Get all lib functions from lib, not pkgs.lib, in modules 2014-07-02 12:28:18 -04:00
shadow.nix Set merge + mkIf always surprises me 2017-01-29 17:10:32 -06:00
shell.nix Use "mkdir -p" when creating ~/.nix-defexpr 2015-04-20 13:03:04 +02:00
slock.nix slock: needs the ability to be install with suid privileges 2017-03-30 14:36:53 -07:00
spacefm.nix nixos/spacefm: unbreak manual build 2016-07-05 13:27:17 +02:00
ssh.nix nixos/xsession: use graphical systemd user target 2017-05-29 15:05:28 +02:00
ssmtp.nix sstmp: document how to specify port/AuthPassFile 2017-04-08 17:20:18 +02:00
tmux.nix nixos/treewide: remove boolean examples for options 2017-03-17 23:36:19 +01:00
venus.nix nixos/treewide: systemd.time is in manvolume 7 2017-03-21 08:28:53 +01:00
vim.nix nixos/treewide: remove boolean examples for options 2017-03-17 23:36:19 +01:00
virtualbox.nix virtualbox service: fix use of deprecated option names 2016-03-28 14:22:18 +08:00
wireshark.nix programs.wireshark: use setcap wrapper 2017-02-17 15:42:55 +01:00
wvdial.nix nixos: fix some types 2015-09-18 18:48:50 +00:00
xfs_quota.nix treewide: Mass replace 'xfsprogs}/bin' to refer the 'bin' output 2016-02-01 20:46:23 +02:00
xonsh.nix nixos: init programs.xonsh 2016-07-21 00:55:36 +02:00