1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 03:09:47 +01:00
home-manager/tests/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 git: quote sendemail section header 2019-01-29 18:28:55 +01:00
files files: allow a wider range of source file names 2019-01-19 12:44:58 +01:00
home-environment Fix type of various sessionVariables options 2019-04-27 01:07:09 +02:00
misc/pam 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/window-managers i3: add test of keybinding merge logic 2019-01-14 22:50:11 +01:00
systemd systemd: add support for session variables 2019-03-24 17:23:50 +01:00
xresources-expected.conf tests: add initial test framework 2018-12-11 00:57:58 +01:00
xresources.nix tests: add initial test framework 2018-12-11 00:57:58 +01:00