1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-29 01:48:31 +02:00
home-manager/modules
Naïm Favier 8db712a6a2
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.
2022-03-30 23:29:09 +02:00
..
accounts email: add fastmail.com email flavor (#2457) 2021-11-14 00:07:23 +01:00
config Replace pkgs.hostPlatform by pkgs.stdenv.hostPlatform 2021-12-03 23:36:50 +01:00
i18n/input-method kime: Fix kime systemd service broken (#2621) 2022-01-17 13:53:42 -05:00
launchd launchd: fix multiple agents 2022-02-27 14:58:54 +01:00
lib types: fix dagOf behaviour with mkIf 2022-03-30 23:29:09 +02:00
lib-bash nix: add support for nix profile 2022-03-26 15:11:28 +01:00
misc dconf: note that system dconf must be enabled 2022-03-26 09:33:10 +01:00
po Translate using Weblate (Turkish) 2022-03-27 09:44:00 +02:00
programs browserpass: add brave support 2022-03-27 01:12:50 +01:00
services picom: use types.lines for extraOptions 2022-03-23 23:10:24 +01:00
targets Replace pkgs.hostPlatform by pkgs.stdenv.hostPlatform 2021-12-03 23:36:50 +01: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-03-26 15:11:28 +01:00
home-environment.nix nix: add support for nix profile 2022-03-26 15:11:28 +01:00
manual.nix docs: rename "doc" directory to "docs" 2021-08-17 19:35:11 +02:00
modules.nix fusuma: add module 2022-03-13 22:17:55 +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 xsession.pointerCursor: escape special characters in the cursor path (#2805) 2022-03-20 18:12:03 -06:00
xresources.nix Replace usage of literalExample 2021-10-13 00:16:10 +02:00
xsession.nix xsession: add xplugd service to accompany setxkbmap (#2450) 2021-12-23 15:38:44 -05:00