mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2026-02-02 09:25:10 +01:00
flake: format
This commit is contained in:
parent
ea8fe3bd9c
commit
9492528225
3 changed files with 34 additions and 36 deletions
|
|
@ -20,6 +20,7 @@ As such, on a server node, we can write kubenix's output there.
|
|||
'';
|
||||
}
|
||||
```
|
||||
|
||||
{{< hint danger >}}
|
||||
**WARN**: this will write all manifests to the nix store and is therefore not suitable for inline sensitive data.
|
||||
{{< /hint >}}
|
||||
|
|
|
|||
23
flake.nix
23
flake.nix
|
|
@ -15,8 +15,7 @@
|
|||
|
||||
outputs = inputs @ {self, ...}:
|
||||
(inputs.flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
system: let
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = [self.overlays.default];
|
||||
|
|
@ -33,12 +32,11 @@
|
|||
|
||||
# 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
|
||||
|
|
@ -60,8 +58,7 @@
|
|||
};
|
||||
}
|
||||
attrs');
|
||||
in
|
||||
{
|
||||
in {
|
||||
inherit evalModules pkgs;
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
|
|
@ -153,15 +150,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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue