1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-05 01:19:46 +01:00
home-manager/modules/misc
Robert Helgesson 162a65f029
Fix type of various sessionVariables options
Unfortunately, using `attrsOf` is not possible since it results in too
eager evaluation. In particular, the

    home.sessionVariables = {
      FOO = "Hello";
      BAR = "${config.home.sessionVariables.FOO} World!";
    };

example will cause an infinite recursion.

This commit restores the option type of

- `home.sessionVariables`,
- `pam.sessionVariables`,
- `programs.bash.sessionVariables`, and
- `programs.zsh.sessionVariables`

to `attrs`. It also adds test cases for the above options to avoid
regressions.

Fixes #659

(cherry picked from commit b6e613c771)
2019-05-01 18:24:02 +02:00
..
dconf.nix dconf: allow values to be floats 2019-04-17 23:04:48 +02:00
fontconfig.nix Parametrize path to profile directory 2018-07-31 16:04:19 +02:00
gtk.nix gtk: use attrsOf instead of attrs 2019-04-03 00:09:46 +02:00
lib.nix lib: copy module from NixOS 2018-09-27 21:01:13 +02:00
news.nix alacritty: add module 2019-04-22 14:43:43 +02:00
nixpkgs.nix docs: add language attribute to program listings 2019-03-06 18:52:54 +01:00
pam.nix Fix type of various sessionVariables options 2019-05-01 18:24:02 +02:00
qt.nix qt: add option platformTheme 2019-04-03 23:55:36 +02:00
submodule-support.nix nixos module: support NixOS user packages install 2019-02-16 21:42:47 +01:00
version.nix Update stable version to 19.03 2019-04-22 20:04:31 +02:00
xdg.nix xdg: create $XDG_CACHE_HOME 2018-08-20 20:37:26 +02:00