mirror of
https://github.com/nix-community/home-manager
synced 2024-11-15 23:59:45 +01:00
home-environment: use DAG type in activation
option
This commit is contained in:
parent
6c127efb2d
commit
7f87329fca
3 changed files with 4 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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"; }
|
||||
];
|
||||
|
|
|
@ -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"; }
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue