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, ... }:
|
outputs = inputs @ { self, ... }:
|
||||||
(inputs.flake-utils.lib.eachDefaultSystem (
|
(inputs.flake-utils.lib.eachDefaultSystem (
|
||||||
system: let
|
system:
|
||||||
|
let
|
||||||
pkgs = import inputs.nixpkgs {
|
pkgs = import inputs.nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [ self.overlays.default ];
|
overlays = [ self.overlays.default ];
|
||||||
|
|
@ -32,11 +33,12 @@
|
||||||
|
|
||||||
# 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 = attrs @ {
|
evalModules =
|
||||||
module ? null,
|
attrs @ { 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
|
||||||
|
|
@ -58,7 +60,8 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
attrs');
|
attrs');
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
inherit evalModules pkgs;
|
inherit evalModules pkgs;
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
|
|
@ -150,15 +153,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 = let
|
checks =
|
||||||
|
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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue