flake: format

This commit is contained in:
Bryton Hall 2023-06-12 02:36:52 -04:00
parent ea8fe3bd9c
commit 9492528225
3 changed files with 34 additions and 36 deletions

View file

@ -20,6 +20,7 @@ As such, on a server node, we can write kubenix's output there.
''; '';
} }
``` ```
{{< hint danger >}} {{< hint danger >}}
**WARN**: this will write all manifests to the nix store and is therefore not suitable for inline sensitive data. **WARN**: this will write all manifests to the nix store and is therefore not suitable for inline sensitive data.
{{< /hint >}} {{< /hint >}}

View file

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