about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix20
1 files changed, 12 insertions, 8 deletions
diff --git a/flake.nix b/flake.nix
index c0da437..3ef69b4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -6,6 +6,12 @@
     unstable-small.url = "github:nixos/nixpkgs/nixos-unstable-small";
     nixpkgs-2111.url = "github:nixos/nixpkgs/nixos-21.11";
 
+    colmena.url = "github:zhaofengli/colmena";
+    colmena.inputs.nixpkgs.follows = "unstable";
+
+    flake-compat.url = "github:edolstra/flake-compat";
+    flake-compat.flake = false;
+
     impermanence.url = "github:nix-community/impermanence";
 
     authentik-nix.url = "github:nix-community/authentik-nix";
@@ -36,12 +42,10 @@
 
       nixosModules = mapModulesRec ./modules import;
 
-      colmena = {
-        meta = {
-          nixpkgs = import unstable { inherit system; overlays = [ (import ./overlays) ]; };
-          specialArgs = { inherit lib inputs system; };
-        };
-      }
-      // mapSystems ./systems { };
-    };
+      nixosConfigurations = mapSystems ./systems { };
+
+      colmena = self.lib.mkColmenaFromNixOSConfigurations self.nixosConfigurations;
+
+      hydraJobs = self.lib.mkHydraFromNixOSConfigurations self.nixosConfigurations;
+   };
 }