home-environment: use DAG type in activation option

This commit is contained in:
Robert Helgesson 2020-01-14 23:45:18 +01:00
parent 6c127efb2d
commit 7f87329fca
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 4 additions and 3 deletions

View file

@ -7,6 +7,7 @@ let
cfg = config.home;
dag = config.lib.dag;
dagOf = (import ./lib/types.nix { inherit dag lib; }).dagOf;
languageSubModule = types.submodule {
options = {
@ -235,8 +236,8 @@ in
home.activation = mkOption {
internal = true;
type = dagOf types.str;
default = {};
type = types.attrs;
description = ''
Activation scripts for the home environment.
</para><para>

View file

@ -23,7 +23,7 @@ in
config = {
tested = mkMerge [
{ dag.after = dag.entryAnywhere "after"; }
{ dag.after = "after"; }
{ dag.before = dag.entryBefore ["after"] "before"; }
{ dag.between = dag.entryBetween ["after"] ["before"] "between"; }
];

View file

@ -25,7 +25,7 @@ in
tested = mkMerge [
{ dag = [ "k" "l" ]; }
{ dag = [ "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" ]; }
{ dag.after = dag.entryAnywhere "after"; }
{ dag.after = "after"; }
{ dag.before = dag.entryBefore ["after"] "before"; }
{ dag.between = dag.entryBetween ["after"] ["before"] "between"; }
];