From f6f682a8a9e6d7c5be41bdd087dcdaff8bb20836 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 11 Aug 2024 18:58:05 +0530 Subject: flake/devShell: add nixfmt-rfc-style --- nixos/tests/all-tests.nix | 73 ++++++++++++++++++++++++----------------------- nixos/tests/dsl.nix | 6 +--- 2 files changed, 38 insertions(+), 41 deletions(-) (limited to 'nixos') 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 = -- cgit v1.2.3