mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
flake: format
This commit is contained in:
parent
5d95447b75
commit
32dc1a09cb
2 changed files with 34 additions and 31 deletions
23
flake.nix
23
flake.nix
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue