Browse Source

make interface nicer

main
Jörg Thalheim 4 months ago
parent
commit
0fb0cbe48f
No known key found for this signature in database GPG Key ID: 3F2096411B5F92
  1. 8
      default.nix
  2. 2
      flake.nix

8
default.nix

@ -10,9 +10,7 @@ rec {
}) config;
# generated: kubernetes List object
# result: JSON file you can deploy to kubernetes
inherit (config.kubernetes) generated result;
# export: Exported docker images
# copyScript: script to push docker images to registry
inherit (config.docker) export copyScript;
inherit (config.kubernetes) generated;
# script to push docker images to registry
pushDockerImages = config.docker.copyScript;
}

2
flake.nix

@ -1,9 +1,9 @@
{
description = "Kubernetes resource builder using nix";
# $ nix run .#mumble-web.pushDockerImages -- --policy ./default-policy.json
# $ kubectl apply -f <(nix eval --json .#mumble-web.generated)
# $ kubectl destroy -f <(nix eval --json .#mumble-web.generated)
# $ nix run .#mumble-web.copyScript
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";

Loading…
Cancel
Save