aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-08-11 18:58:05 +0530
committersinanmohd <sinan@sinanmohd.com>2024-08-11 18:59:31 +0530
commitf6f682a8a9e6d7c5be41bdd087dcdaff8bb20836 (patch)
tree5385b3593c186971ceba11288c8175357dae03c1
parent89ac91f70a9788b7a39b1b130108b005ed354a7d (diff)
flake/devShell: add nixfmt-rfc-style
-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 =