flake: format

This commit is contained in:
Bryton Hall 2023-06-03 03:11:07 -04:00
parent eb3ec20f46
commit baa1a6c949
16 changed files with 86 additions and 72 deletions

View file

@ -1,8 +1,8 @@
{ kubenix ? import ../../../.. }:
{kubenix ? import ../../../..}:
kubenix.evalModules.${builtins.currentSystem} {
module = { kubenix, ... }: {
module = {kubenix, ...}: {
# instead of defining everything inline, let's import it
imports = [ ./module.nix ];
imports = [./module.nix];
# annotate the generated resources with a project name
kubenix.project = "example";

View file

@ -1,5 +1,5 @@
{ kubenix, ... }: {
imports = [ kubenix.modules.k8s ];
{kubenix, ...}: {
imports = [kubenix.modules.k8s];
kubernetes.resources = {
deployments.nginx.spec = {
@ -51,10 +51,12 @@
services.nginx.spec = {
selector.app = "nginx";
ports = [{
name = "http";
port = 80;
}];
ports = [
{
name = "http";
port = 80;
}
];
};
};
}