home-manager/tests
Naïm Favier 834d863dd2
types: fix dagOf behaviour with mkIf
This makes definitions like

    home.activation.foo = mkIf false "bar"

work, where previously they would complain about
`home.activation.foobar.data` being used but not defined.

The crucial part is that we don't call `convertAllToDags` in
`dagOf.merge`, because we need to process `mkIf`/`mkMerge` properties
first. So we let `attrEquivalent.merge` do its job normally, but give
it a type `dagEntryOf` that does the conversion.

Ideally this shouldn't require so much boilerplate; I'd like to
implement something like

    types.changeInto dagContentType elemType dagEntryAnywhere

in Nixpkgs.

(cherry picked from commit 8db712a6a2)
2022-04-26 12:34:13 +02:00
..
lib/types types: fix dagOf behaviour with mkIf 2022-04-26 12:34:13 +02:00
modules gpg: allow specifying trust levels by name 2021-12-19 00:59:29 +01:00
asserts.nix tests: fix test.assert.assertions.enable not working 2021-10-13 01:29:23 +02:00
default.nix Switch to 21.11 as stable release 2021-11-25 22:22:26 +01:00
stubs.nix tests: add option test.stubs 2021-09-26 23:26:38 +02:00