diff options
-rw-r--r-- | flake.nix | 1 | ||||
-rw-r--r-- | nixos/tests/all-tests.nix | 73 | ||||
-rw-r--r-- | nixos/tests/dsl.nix | 6 |
3 files changed, 39 insertions, 41 deletions
@@ -27,6 +27,7 @@ inputsFrom = [ self.packages.${system}.evanix ]; packages = with pkgs; [ + nixfmt-rfc-style gdb ccls valgrind 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 = |