1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00
home-manager/modules
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
..
accounts email: add fastmail.com email flavor (#2457) 2021-11-14 00:07:23 +01:00
config Move platform check into modules 2021-07-18 20:43:22 +02:00
i18n/input-method Replace usage of literalExample 2021-10-13 00:16:10 +02:00
lib types: fix dagOf behaviour with mkIf 2022-04-26 12:34:13 +02:00
lib-bash nix: add support for nix profile 2022-04-11 23:10:26 +02:00
misc taskwarrior: clean up news entry 2021-11-25 08:32:19 +01:00
programs gpg: fix handling of multiple public keys 2022-04-25 01:05:45 +02:00
services swaynag: add module 2021-11-21 18:37:50 +01:00
targets generic-linux: add system fpaths for zsh 2021-09-07 23:47:49 +02:00
default.nix modules: don't reference deprecated stdenv.lib (#1770) 2021-02-01 09:52:05 -05:00
files.nix nix: add support for nix profile 2022-04-11 23:10:26 +02:00
home-environment.nix nix: add support for nix profile 2022-04-11 23:10:26 +02:00
manual.nix docs: rename "doc" directory to "docs" 2021-08-17 19:35:11 +02:00
modules.nix swaynag: add module 2021-11-21 18:37:50 +01:00
systemd-activate.rb Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd-activate.sh Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd.nix systemd: do not install systemd files when user is root (#2454) 2021-11-23 01:06:43 -05:00
xcursor.nix Replace usage of literalExample 2021-10-13 00:16:10 +02:00
xresources.nix Replace usage of literalExample 2021-10-13 00:16:10 +02:00
xsession.nix Replace usage of literalExample 2021-10-13 00:16:10 +02:00