ops(k8s): create app of apps project, deploy flannel with it

This commit is contained in:
Kat Inskip 2024-01-17 15:34:53 -08:00
parent de91366e09
commit bcbc560217
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
7 changed files with 96 additions and 26 deletions

View file

@ -1,6 +1,8 @@
{ inputs, system }:
let
meta = import ./meta.nix { inherit inputs system; };
{
inputs,
system,
}: let
meta = import ./meta.nix {inherit inputs system;};
inherit (meta) pkgs;
nf-actions = pkgs.writeShellScriptBin "nf-actions" ''
NF_CONFIG_FILES=($NF_CONFIG_ROOT/ci/{nodes,flake-cron}.nix)
@ -29,26 +31,33 @@ let
cd "$NF_CONFIG_ROOT/tf"
exec nix run ''${FLAKE_OPTS-} "$NF_CONFIG_ROOT#nf-lint-tf" -- "$@"
'';
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
inetutils
sops
nf-actions
nf-actions-test
nf-update
nf-deploy
nf-tf
nf-lint-tf
];
shellHook = ''
export NIX_BIN_DIR=$(dirname $(readlink -f $(type -P nix)))
export HOME_UID=$(id -u)
export HOME_USER=$(id -un)
export CI_PLATFORM="impure"
export NF_CONFIG_ROOT=''${NF_CONFIG_ROOT-${toString ./.}}
export NIX_PATH="$NIX_PATH:home=$NF_CONFIG_ROOT"
export NIX_SSHOPTS="''${NIX_SSHOPTS--p62954}"
nf-kustomize = pkgs.writeShellScriptBin "kustomize" ''
exec nix run ''${FLAKE_OPTS-} "$NF_CONFIG_ROOT#pkgs.kustomize" -- "$@"
'';
}
nf-argocd = pkgs.writeShellScriptBin "argocd" ''
exec nix run ''${FLAKE_OPTS-} "$NF_CONFIG_ROOT#pkgs.argocd" -- "$@"
'';
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
inetutils
sops
nf-actions
nf-actions-test
nf-update
nf-deploy
nf-tf
nf-lint-tf
nf-kustomize
nf-argocd
];
shellHook = ''
export NIX_BIN_DIR=$(dirname $(readlink -f $(type -P nix)))
export HOME_UID=$(id -u)
export HOME_USER=$(id -un)
export CI_PLATFORM="impure"
export NF_CONFIG_ROOT=''${NF_CONFIG_ROOT-${toString ./.}}
export NIX_PATH="$NIX_PATH:home=$NF_CONFIG_ROOT"
export NIX_SSHOPTS="''${NIX_SSHOPTS--p62954}"
'';
}