non-critical-infra: re-add colmena configuration
Jörg Thalheim committed
Aug 18, 2024 at 17:56 UTC
07f3ccdb53f42d758322e0fe0c3b4f50eb18780a
1 file changed
+20
-1
non-critical-infra/flake-module.nix
+20
-1
@@ -1,4 +1,9 @@
1
-{ inputs, lib, ... }:
1
+{
2
+ self,
3
+ inputs,
4
+ lib,
5
+ ...
6
+}:
7
{
8
flake =
9
let
@@ -27,6 +32,20 @@
32
33
}
34
) (importConfig ./hosts);
35
+
36
+ colmena =
37
+ {
38
+ meta = {
39
+ nixpkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
40
+ nodeNixpkgs = builtins.mapAttrs (_: v: v.pkgs) self.nixosConfigurations;
41
+ nodeSpecialArgs = builtins.mapAttrs (_: v: v._module.specialArgs) self.nixosConfigurations;
42
+ specialArgs.lib = lib;
43
+ };
44
+ }
45
+ // builtins.mapAttrs (_: v: {
46
+ deployment.tags = [ "non-critical-infra" ];
47
+ imports = v._module.args.modules;
48
+ }) self.nixosConfigurations;
49
};
50
51
perSystem =