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;
|
cfg = config.home;
|
||||||
|
|
||||||
dag = config.lib.dag;
|
dag = config.lib.dag;
|
||||||
|
dagOf = (import ./lib/types.nix { inherit dag lib; }).dagOf;
|
||||||
|
|
||||||
languageSubModule = types.submodule {
|
languageSubModule = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
|
@ -235,8 +236,8 @@ in
|
||||||
|
|
||||||
home.activation = mkOption {
|
home.activation = mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
|
type = dagOf types.str;
|
||||||
default = {};
|
default = {};
|
||||||
type = types.attrs;
|
|
||||||
description = ''
|
description = ''
|
||||||
Activation scripts for the home environment.
|
Activation scripts for the home environment.
|
||||||
</para><para>
|
</para><para>
|
||||||
|
|
|
@ -23,7 +23,7 @@ in
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
tested = mkMerge [
|
tested = mkMerge [
|
||||||
{ dag.after = dag.entryAnywhere "after"; }
|
{ dag.after = "after"; }
|
||||||
{ dag.before = dag.entryBefore ["after"] "before"; }
|
{ dag.before = dag.entryBefore ["after"] "before"; }
|
||||||
{ dag.between = dag.entryBetween ["after"] ["before"] "between"; }
|
{ dag.between = dag.entryBetween ["after"] ["before"] "between"; }
|
||||||
];
|
];
|
||||||
|
|
|
@ -25,7 +25,7 @@ in
|
||||||
tested = mkMerge [
|
tested = mkMerge [
|
||||||
{ dag = [ "k" "l" ]; }
|
{ dag = [ "k" "l" ]; }
|
||||||
{ dag = [ "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" ]; }
|
{ 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.before = dag.entryBefore ["after"] "before"; }
|
||||||
{ dag.between = dag.entryBetween ["after"] ["before"] "between"; }
|
{ dag.between = dag.entryBetween ["after"] ["before"] "between"; }
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue