You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
892 B

{
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)
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs.kubenix.url = "github:Mic92/kubenix/flake";
outputs = { self
, nixpkgs
, flake-utils
, kubenix
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in rec {
packages.mumble-web = pkgs.callPackage ./default.nix {
kubenix = kubenix.defaultPackage.${system};
};
defaultPackage = packages.mumble-web;
devShell = pkgs.callPackage ./shell.nix {};
});
}