chore: format files

This commit is contained in:
technofab 2025-12-18 13:42:14 +01:00
parent 012a3afb2d
commit 471cb8b7b5
Signed by: technofab
SSH key fingerprint: SHA256:bV4h88OqS/AxjbPn66uUdvK9JsgIW4tv3vwJQ8tpMqQ
11 changed files with 48 additions and 54 deletions

View file

@ -10,7 +10,7 @@ with lib; rec {
};
modules = [
file
({...}: {
(_: {
# pass through all args to the values.nix module
config =
rawValues
@ -59,41 +59,42 @@ with lib; rec {
eval = {
system,
project ? defaultProject,
overrides ? ({...}: {}),
overrides ? (_: {}),
values ? {},
}:
assert lib.assertMsg (project != null) "No default project set, please pass a project to the render method"; let
nixletArg = baseNixletArg // {inherit project;};
in (kubenix.evalModules.${system} {
module = {kubenix, ...}: {
imports = with kubenix.modules; [
k8s
helm
docker
files
./secretsModule.nix
({...}: let
finalValues = mkValues "${path}/values.nix" {
rawValues = values;
nixlet = nixletArg;
};
in {
imports = [path];
_module.args.nixlet =
{
values = finalValues;
}
// nixletArg;
})
overrides
];
kubenix.project = project;
in
kubenix.evalModules.${system} {
module = {kubenix, ...}: {
imports = with kubenix.modules; [
k8s
helm
docker
files
./secretsModule.nix
(_: let
finalValues = mkValues "${path}/values.nix" {
rawValues = values;
nixlet = nixletArg;
};
in {
imports = [path];
_module.args.nixlet =
{
values = finalValues;
}
// nixletArg;
})
overrides
];
kubenix.project = project;
};
};
});
render = {
system,
project ? defaultProject,
overrides ? ({...}: {}),
overrides ? (_: {}),
values ? {},
}:
(nixlet.eval {
@ -150,6 +151,6 @@ with lib; rec {
)
);
mkDocs = {nixlet, ...} @ opts:
mkDocs = opts:
import ./valuesDocs.nix (opts // {inherit lib;});
}

View file

@ -31,7 +31,7 @@
optionsNix = builtins.listToAttrs (
map (o: {
name = o.name;
inherit (o) name;
value = removeAttrs o [
"visible"
"internal"
@ -76,9 +76,9 @@
'')
+ "\n";
opts = mapAttrsToList (name: opt:
optToMd opt)
optionsNix;
opts =
mapAttrsToList (_name: optToMd)
optionsNix;
markdown = concatStringsSep "\n" opts;
in
builtins.toFile "values-doc.md" markdown