feat: add flux

This commit is contained in:
Yadunand Prem 2024-08-22 19:15:03 -04:00
parent ef9db173d3
commit 0d076c4c13
No known key found for this signature in database
6 changed files with 7 additions and 3 deletions

0
apps/base/.keep Normal file
View File

0
cluster/base/.keep Normal file
View File

View File

@ -64,7 +64,7 @@
};
nixosConfigurations = let
nodes = ["premhome-falcon-1" "premhome-falcon-2" "premhome-falcon-3"];
nodes = ["premhome-falcon-1" "premhome-falcon-2" "premhome-falcon-3" "premhome-eagle-1" "premhome-eagle-2"];
in builtins.listToAttrs (map (name: {
name = name;
value = nixpkgs.lib.nixosSystem {
@ -87,8 +87,7 @@
nodeNixpkgs = builtins.mapAttrs (name: value: value.pkgs) configs;
nodeSpecialArgs = builtins.mapAttrs (name: value: value._module.specialArgs) configs;
};
} // builtins.mapAttrs (name: value: { imports = value._module.args.modules;
}) configs;
} // builtins.mapAttrs (name: value: { imports = value._module.args.modules; }) configs;
} // flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs {
inherit system;
@ -101,6 +100,10 @@
pkgs.colmena
pkgs.shellcheck
agenix.packages.${system}.default
pkgs.ansible
pkgs.kubernetes-helm
pkgs.helmfile
pkgs.fluxcd
];
};
};

0
infra/base/.keep Normal file
View File

BIN
nixos/secrets/flux.age Normal file

Binary file not shown.

View File

@ -4,4 +4,5 @@ in
{
"tailscale.age".publicKeys = builtins.attrValues keys;
"k3s.age".publicKeys = builtins.attrValues keys;
"flux.age".publicKeys = [ keys.yadunut keys.yadunut-mbp ];
}