flake: format

This commit is contained in:
Bryton Hall 2023-06-11 23:53:55 -04:00
parent 5d95447b75
commit 32dc1a09cb
2 changed files with 34 additions and 31 deletions

View file

@ -15,7 +15,8 @@
outputs = inputs @ { self, ... }:
(inputs.flake-utils.lib.eachDefaultSystem (
system: let
system:
let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
@ -32,11 +33,12 @@
# evalModules with same interface as lib.evalModules and kubenix as
# special argument
evalModules = attrs @ {
module ? null,
modules ? [module],
...
}: let
evalModules =
attrs @ { module ? null
, modules ? [ module ]
, ...
}:
let
lib' = lib.extend (lib: _self: import ./lib/upstreamables.nix { inherit lib pkgs; });
attrs' = builtins.removeAttrs attrs [ "module" ];
in
@ -58,7 +60,8 @@
};
}
attrs');
in {
in
{
inherit evalModules pkgs;
devShells.default = pkgs.mkShell {
@ -150,15 +153,15 @@
# error: No module found name/latest
# not sure how important that documentation is a this time
self.nixosModules.kubenix [ "submodule" "submodules" ]);
})
.options;
}).options;
};
}
// import ./jobs {
inherit pkgs;
};
checks = let
checks =
let
wasSuccess = suite:
if suite.success
then pkgs.runCommandNoCC "testing-suite-config-assertions-for-${suite.name}-succeeded" { } "echo success > $out"