22 lines
614 B
Nix
22 lines
614 B
Nix
{
|
|
inputs.kubenix.url = "github:hall/kubenix";
|
|
outputs = { self, kubenix, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
in {
|
|
kubenix = kubenix.packages.${system}.default.override {
|
|
module = {kubenix, ...}: {
|
|
imports = [kubenix.modules.k8s];
|
|
kubernetes = {
|
|
kubeconfig = "/etc/rancher/k3s/k3s.yaml";
|
|
version = "1.24";
|
|
};
|
|
kubenix.project = "yeet";
|
|
|
|
kubernetes.resources.pods.web1.spec.containers.nginx.image = "nginx";
|
|
kubernetes.resources.pods.web2.spec.containers.nginx.image = "nginx";
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|