switch formatting to nixpkgs-fmt

This commit is contained in:
Bryton Hall 2023-07-07 22:01:34 -04:00
parent 3598716c73
commit 2712e89716
65 changed files with 4839 additions and 5222 deletions

View file

@ -1,20 +1,15 @@
{
system ? builtins.currentSystem,
evalModules ? (import ../. {}).evalModules.${system},
}: {
k8sVersion ? "1.23",
registry ? throw "Registry url not defined",
doThrowError ? true, # whether any testing error should throw an error
enabledTests ? null,
}: let
{ system ? builtins.currentSystem, evalModules ? (import ../. { }).evalModules.${system} }:
{ k8sVersion ? "1.23"
, registry ? throw "Registry url not defined"
, doThrowError ? true
# whether any testing error should throw an error
, enabledTests ? null
}:
let
inherit
((evalModules {
module = {
kubenix,
pkgs,
...
}: {
imports = [kubenix.modules.testing];
module = { kubenix, pkgs, ... }: {
imports = [ kubenix.modules.testing ];
testing = {
inherit doThrowError enabledTests;
@ -38,21 +33,19 @@
./submodules/passthru.nix
];
args = {images = pkgs.callPackage ./images.nix {};};
args = { images = pkgs.callPackage ./images.nix { }; };
docker.registryUrl = registry;
common = [
{
features = ["k8s"];
options = {
kubernetes.version = k8sVersion;
};
}
];
common = [{
features = [ "k8s" ];
options = {
kubernetes.version = k8sVersion;
};
}];
};
};
}))
config
;
in
config.testing // {recurseForDerivations = true;}
config.testing // { recurseForDerivations = true; }