aboutsummaryrefslogtreecommitdiff
path: root/nixos/tests
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/all-tests.nix73
-rw-r--r--nixos/tests/dsl.nix6
2 files changed, 38 insertions, 41 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 7f7c6be..e1e64ce 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -1,7 +1,4 @@
-{
- nixos-lib,
- pkgs,
-}:
+{ nixos-lib, pkgs }:
let
dsl = ./dsl.nix;
@@ -17,39 +14,41 @@ let
# \ | / | |
# U V W X
sunset.dag = {
- nodes = let
- abcInputs = {
- u = {};
- v = {};
- };
- in {
- a = {
- request = true;
- inputs = abcInputs;
- };
- b = {
- request = true;
- inputs = abcInputs;
- };
- c = {
- request = true;
- inputs = abcInputs;
- };
+ nodes =
+ let
+ abcInputs = {
+ u = { };
+ v = { };
+ };
+ in
+ {
+ a = {
+ request = true;
+ inputs = abcInputs;
+ };
+ b = {
+ request = true;
+ inputs = abcInputs;
+ };
+ c = {
+ request = true;
+ inputs = abcInputs;
+ };
- d = {
- request = true;
- inputs.w = {};
- };
- e = {
- request = true;
- inputs.x = {};
- };
+ d = {
+ request = true;
+ inputs.w = { };
+ };
+ e = {
+ request = true;
+ inputs.x = { };
+ };
- u = {};
- v = {};
- w = {};
- x = {};
- };
+ u = { };
+ v = { };
+ w = { };
+ x = { };
+ };
};
in
builtins.mapAttrs
@@ -66,7 +65,9 @@ builtins.mapAttrs
'';
}
// value
- // { imports = value.imports ++ [ dsl ]; }
+ // {
+ imports = value.imports ++ [ dsl ];
+ }
)
)
{
diff --git a/nixos/tests/dsl.nix b/nixos/tests/dsl.nix
index 41f0a4c..4297484 100644
--- a/nixos/tests/dsl.nix
+++ b/nixos/tests/dsl.nix
@@ -1,8 +1,4 @@
-{
- lib,
- config,
- ...
-}:
+{ lib, config, ... }:
let
Dependency =