nixpkgs/nixos/modules/services
Will Dietz f3a114e088 NIX_PATH: don't prepend $HOME-based value in session variable, set later
environment.sessionVariables cannot refer to the values of env vars,
and as a result this has caused problems in a variety of scenarios.

One use for these is that they're injected into /etc/profile,
elewhere these are used to populate an 'envfile' for pam
(`pam 5 pam_env.conf`) which mentions use of HOME being
potentially problematic.

Anyway if the goal is to make things easier for users,
simply do the NIX_PATH modification as extraInit.

This fixes the annoying problems generated by the current approach
(#40165 and others) while hopefully serving the original goal.

One way to check if things are borked is to try:

$ sudo env | grep NIX_PATH

Which (before this change) prints NIX_PATH variable with
an unexpanded $HOME in the value.

-------

This does mean the following won't contain user channels for 'will':
$ sudo -u will nix-instantiate --eval -E builtins.nixPath

However AFAICT currently they won't be present either,
due to unescaped $HOME.  Unsure if similar situation for other users
of sessionVariables (not sudo) work with current situation
(if they exist they will regress after this change AFAIK).
2018-09-29 20:29:33 -04:00
..
admin nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
amqp rabbitmq module: modernize after package upgrade 2018-09-25 11:19:23 +02:00
audio nixos/mpd: allow storage plugins in musicDirectory 2018-08-03 21:36:38 +02:00
backup Merge pull request #44332 from jerith666/restic-s3-default 2018-08-01 22:56:12 -04:00
cluster nixos/kubernetes: fix kubelet cgroup stats 2018-07-31 15:45:37 +02:00
computing nixos/slurm: add option clusterName 2018-09-08 23:14:54 +02:00
continuous-integration [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
databases postgresql: give postgres user a shell 2018-09-26 12:11:40 +01:00
desktops nixos/rygel: init 2018-09-08 06:57:14 +02:00
development nixos/jupyter: init service 2018-08-26 12:00:54 +02:00
editors nixos docs: more IDs 2018-09-02 15:56:24 -04:00
games nixos/terraria: Wait for daemon to stop 2018-08-20 21:41:29 +02:00
hardware nixos/trezord: revised and updated udev rules 2018-09-24 19:55:14 +02:00
logging Merge branch 'master' into es6 2018-08-23 23:41:27 +02:00
mail nixos/rspamd: Remove non-working socket activation 2018-09-28 19:43:34 +02:00
misc NIX_PATH: don't prepend $HOME-based value in session variable, set later 2018-09-29 20:29:33 -04:00
monitoring datadog-agent: remove privateTmp=true 2018-09-19 18:53:51 +01:00
network-filesystems Merge pull request #44238 from jfrankenau/samba-conf-override 2018-08-16 16:56:24 +02:00
networking shairport-sync: fix pulseaudio support & default arguments 2018-09-26 18:12:02 +02:00
printing nixos/cupsd: add option to start when needed 2018-07-14 23:39:43 +02:00
scheduling nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
search elasticsearch-curator: include the module in the module-list & fix bug 2018-08-25 18:53:10 +02:00
security nixos/tor: Correct "transparent" typo 2018-09-17 16:13:11 +02:00
system Merge pull request #42295 from avnik/libprefixed-to-multioutput/heimdal 2018-09-05 13:50:13 -05:00
torrent nixos/transmission: fix AppArmor profile to include keyutils 2018-08-31 17:19:29 +02:00
ttys [bot] treewide: remove unused 'inherit' in let blocks 2018-07-20 19:38:19 +00:00
web-apps codimd: remove unneeded defaults 2018-09-18 23:15:34 +02:00
web-servers nixos/nginx: fix type of sslTrustedCertificate option 2018-09-02 01:35:59 +02:00
x11 Merge pull request #47205 from matthewbauer/add-kdoctools 2018-09-23 18:46:36 -05:00