add ubuntu test pod

This commit is contained in:
NyxErinys 2026-05-17 23:21:23 -05:00
parent 289b69d342
commit 0ac4dabdb5
4 changed files with 21 additions and 7 deletions

View file

@ -35,7 +35,7 @@ in
token = config.sops.secrets.k3s_token.path;
clusterInit = mkIf cfg.initServer true;
serverAddr = mkIf (!cfg.initServer) "https://10.5.0.103:6443";
# manifests = import ./manifests.nix { inherit lib cfg }
manifests = import ./manifests.nix { inherit lib cfg inputs }
};
};
}

View file

@ -1,8 +1,8 @@
{ cfg, lib, ... }:
{ cfg, lib, inputs, ... }:
let
manifests = [
"./ubuntu.nix"
];
imported = map ( n: import ${n} { inherit cfg, lib } ) manifests;
imported = map ( n: import ${n} { inherit cfg lib inputs } ) manifests;
in
lib.foldl' lib.recursiveUpdate {} imported

View file

@ -0,0 +1,14 @@
{cfg, lib, inputs, ...}:
{
ubuntu.content = {
apiVersion = "v1";
kind = "Pod";
metadata.name = "ubuntu";
spec.containers = [
{
name = "ubuntu";
image = "ubuntu:latest";
}
];
};
}

View file

@ -1,8 +1,8 @@
{ cfg, lib, ... }:
{ cfg, lib, inputs, ... }:
let
manifests = [
""
];
imported = map ( n: import ${n} { inherit cfg, lib } ) manifests;
imported = map ( n: import ${n} { inherit cfg lib inputs } ) manifests;
in
lib.foldl' lib.recursiveUpdate {} imported