1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-28 04:39:48 +01:00
home-manager/tests/lib/types
Naïm Favier 6311f4adc3
lib/types: make DAG entries mergeable
Removes the `uniq` constraint on `after` and `before` so that we can
merge multiple definitions for the same DAG entry:

    {
      dag = mkMerge [
        {
          foo = lib.hm.dag.entryBefore [ "bar" ] {
            # definition 1
          };
        }
        {
          foo = lib.hm.dag.entryBefore [ "qux" ] {
            # definition 2
          };
        }
        {
          foo = {
            # definition 3
          };
        }
      ];
    }

In this example `foo` will come before `bar` and `qux`.
2022-07-12 11:47:38 +02:00
..
dag-merge-result.txt lib/types: make DAG entries mergeable 2022-07-12 11:47:38 +02:00
dag-merge.nix lib/types: make DAG entries mergeable 2022-07-12 11:47:38 +02:00
dag-submodule.nix lib: remove top-level with lib 2021-10-31 08:50:53 +01:00
default.nix types: improve dagOf and listOrDagOf 2020-04-13 22:01:20 +02:00
gvariant-merge.nix lib: remove top-level with lib 2021-10-31 08:50:53 +01:00
list-or-dag-merge-result.txt lib: add type generators dagOf and listOrDagOf 2020-01-16 00:16:09 +01:00
list-or-dag-merge.nix lib: remove top-level with lib 2021-10-31 08:50:53 +01:00