1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00
nixpkgs/nixos/modules/services/misc
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
..
taskserver nixos docs: give IDs to things 2018-09-01 16:20:49 -04:00
airsonic.nix airsonic: provide additional jvm configuration 2018-09-13 20:05:02 -04:00
apache-kafka.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
autofs.nix
autorandr.nix nixos/autorandr: make default target in systemd service configurable 2018-07-05 14:39:08 +02:00
bepasty.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
calibre-server.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
canto-daemon.nix
cfdyndns.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
cgminer.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
clipmenu.nix nixos/modules: add clipmenu user service 2018-07-15 12:22:46 -07:00
confd.nix
couchpotato.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
cpuminer-cryptonight.nix
defaultUnicornConfig.rb gitlab service: use recommended unicorn config 2018-03-22 02:29:28 +01:00
devmon.nix
dictd.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
disnix.nix nixos/disnix: undo dysnomia rename to fix disnix and retain compatibility with previous release 2018-08-06 01:25:38 +02:00
docker-registry.nix docker-registry: Revert "[bot]: remove unreferenced code" 2018-08-06 16:31:33 +02:00
dysnomia.nix nixos/disnix: undo dysnomia rename to fix disnix and retain compatibility with previous release 2018-08-06 01:25:38 +02:00
emby.nix nixos/emby: ensure plugins are writeable 2018-09-20 06:35:51 -04:00
errbot.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
etcd.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
exhibitor.nix [bot]: remove unreferenced code 2018-07-20 18:48:37 +00:00
felix.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
folding-at-home.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
fstrim.nix
gammu-smsd.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
geoip-updater.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
gitea.nix nixos/gitea: fix pre start script (#44979) 2018-08-31 16:39:58 +02:00
gitit.nix reewide: Purge all uses stdenv.system and top-level system 2018-08-30 17:20:32 -04:00
gitlab.nix nixos/gitlab: rebuild authorized_keys during preStart 2018-09-25 03:53:32 +02:00
gitlab.xml nixos docs: give IDs to things 2018-09-01 16:20:49 -04:00
gitolite.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
gitweb.nix nixos/gitweb: add gitwebTheme option 2018-04-17 20:07:01 +03:00
gogs.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
gollum.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
gpsd.nix gpsd: use optionalString 2018-07-03 13:55:27 +01:00
home-assistant.nix nixos/home-assistant: do not always override extraComponents (#43845) 2018-07-20 19:28:29 +02:00
ihaskell.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
irkerd.nix
jackett.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
leaps.nix [bot] treewide: remove unused 'args@' in lambdas 2018-07-20 19:54:05 +00:00
lidarr.nix lidarr: init at 0.3.1.471 2018-09-29 21:40:29 +02:00
logkeys.nix
mantisbt.nix
mathics.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
matrix-synapse-log_config.yaml
matrix-synapse.nix Revert "nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1" 2018-07-28 00:12:55 +03:00
mbpfan.nix
mediatomb.nix [bot]: remove unreferenced code 2018-07-20 18:48:37 +00:00
mesos-master.nix
mesos-slave.nix nixos/mesos-slave: start after docker 2018-05-11 19:37:31 +02:00
mwlib.nix
nix-daemon.nix NIX_PATH: don't prepend $HOME-based value in session variable, set later 2018-09-29 20:29:33 -04:00
nix-gc.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
nix-optimise.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
nix-ssh-serve.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
nixos-manual.nix nixos: Fix eval error for documentation.nixos 2018-09-25 23:39:44 +02:00
novacomd.nix
nscd-sssd.conf
nzbget.nix [bot]: remove unreferenced code 2018-07-20 18:48:37 +00:00
octoprint.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
osrm.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
packagekit.nix
parsoid.nix nodePackages.parsoid: pin service-runner to 2.3.0 2018-04-02 22:38:40 +03:00
phd.nix
plex.nix [bot]: remove unreferenced code 2018-07-20 18:48:37 +00:00
plexpy.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
pykms.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
radarr.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
redmine.nix removed some local development stuff 2018-08-19 16:41:49 -04:00
ripple-data-api.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
rippled.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
rogue.nix
safeeyes.nix safeeyes: restart only on failure 2018-04-10 21:19:13 +03:00
serviio.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
sickbeard.nix Add sickbeard module (with SickGear & SickRage) 2018-09-16 21:54:16 +02:00
siproxd.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
snapper.nix
sonarr.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
spice-vdagentd.nix
ssm-agent.nix nixos: Move uses of stdenv.shell to runtimeShell. 2018-03-01 14:38:53 -05:00
sssd.nix
subsonic.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
sundtek.nix
svnserve.nix
synergy.nix nixos/synergy: Use graphical target (fixes #9468) 2018-08-16 08:53:45 -04:00
sysprof.nix sysprof: 1.2.0 -> 3.28.1 2018-05-16 16:54:12 +02:00
tzupdate.nix
uhub.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
weechat.nix nixos/weechat: cleanup module, add module documentation 2018-09-07 13:45:13 +02:00
weechat.xml nixos/weechat: cleanup module, add module documentation 2018-09-07 13:45:13 +02:00
xmr-stak.nix xmr-stak service: support multiple config files 2018-06-19 18:07:41 +02:00
zookeeper.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00