home-manager/modules
Robert Helgesson b6e613c771
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
2019-04-27 01:07:09 +02:00
..
accounts email: add facility for email aliases 2019-04-12 21:26:46 +02:00
lib files: allow a wider range of source file names 2019-01-19 12:44:58 +01:00
lib-bash activation-init: sanity check oldGenNum and oldGenPath 2018-03-13 20:49:45 +01:00
misc Fix type of various sessionVariables options 2019-04-27 01:07:09 +02:00
programs Fix type of various sessionVariables options 2019-04-27 01:07:09 +02:00
services xscreensaver: add option settings 2019-04-22 23:44:46 +02:00
default.nix modules: register the base modules path 2019-04-07 13:26:38 +02:00
files.nix Remove some use of mkDerivation 2019-03-18 23:09:54 +01:00
home-environment.nix Fix type of various sessionVariables options 2019-04-27 01:07:09 +02:00
manual.nix manual: add option manual.json.enable 2019-04-15 22:43:46 +02:00
modules.nix vscode.haskell: add module 2019-04-27 01:00:57 +02:00
systemd-activate.rb systemd: support X-RestartIfChanged = false 2019-04-18 01:38:20 +02:00
systemd-activate.sh allow Home Manager to be used as a NixOS module 2018-02-07 20:50:01 +01:00
systemd.nix systemd: make the unit option type more robust 2019-04-12 01:02:12 +02:00
xcursor.nix xcursor: add default cursor file option 2018-05-10 20:26:01 +02:00
xresources.nix xresources: remove unnecessary parentheses 2018-09-24 23:24:04 +02:00
xsession.nix home-environment: make home.keyboard optional 2019-04-11 01:09:27 +02:00