aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix1
-rw-r--r--nixos/tests/all-tests.nix73
-rw-r--r--nixos/tests/dsl.nix6
3 files changed, 39 insertions, 41 deletions
diff --git a/flake.nix b/flake.nix
index e86dc6b..4bf73f8 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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 =