feat: add flux
This commit is contained in:
0
apps/base/.keep
Normal file
0
apps/base/.keep
Normal file
0
cluster/base/.keep
Normal file
0
cluster/base/.keep
Normal file
@@ -64,7 +64,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = let
|
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: {
|
in builtins.listToAttrs (map (name: {
|
||||||
name = name;
|
name = name;
|
||||||
value = nixpkgs.lib.nixosSystem {
|
value = nixpkgs.lib.nixosSystem {
|
||||||
@@ -87,8 +87,7 @@
|
|||||||
nodeNixpkgs = builtins.mapAttrs (name: value: value.pkgs) configs;
|
nodeNixpkgs = builtins.mapAttrs (name: value: value.pkgs) configs;
|
||||||
nodeSpecialArgs = builtins.mapAttrs (name: value: value._module.specialArgs) configs;
|
nodeSpecialArgs = builtins.mapAttrs (name: value: value._module.specialArgs) configs;
|
||||||
};
|
};
|
||||||
} // builtins.mapAttrs (name: value: { imports = value._module.args.modules;
|
} // builtins.mapAttrs (name: value: { imports = value._module.args.modules; }) configs;
|
||||||
}) configs;
|
|
||||||
} // flake-utils.lib.eachDefaultSystem (system:
|
} // flake-utils.lib.eachDefaultSystem (system:
|
||||||
let pkgs = import nixpkgs {
|
let pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
@@ -101,6 +100,10 @@
|
|||||||
pkgs.colmena
|
pkgs.colmena
|
||||||
pkgs.shellcheck
|
pkgs.shellcheck
|
||||||
agenix.packages.${system}.default
|
agenix.packages.${system}.default
|
||||||
|
pkgs.ansible
|
||||||
|
pkgs.kubernetes-helm
|
||||||
|
pkgs.helmfile
|
||||||
|
pkgs.fluxcd
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
0
infra/base/.keep
Normal file
0
infra/base/.keep
Normal file
BIN
nixos/secrets/flux.age
Normal file
BIN
nixos/secrets/flux.age
Normal file
Binary file not shown.
@@ -4,4 +4,5 @@ in
|
|||||||
{
|
{
|
||||||
"tailscale.age".publicKeys = builtins.attrValues keys;
|
"tailscale.age".publicKeys = builtins.attrValues keys;
|
||||||
"k3s.age".publicKeys = builtins.attrValues keys;
|
"k3s.age".publicKeys = builtins.attrValues keys;
|
||||||
|
"flux.age".publicKeys = [ keys.yadunut keys.yadunut-mbp ];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user