From f4d8ab880a58e00af5a7fcda112baa7de2f8f0df Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 11 Feb 2024 02:11:21 +0900 Subject: feat(project)!: support nixos-rebuild and hydra --- flake.nix | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'flake.nix') 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; + }; } -- cgit 1.4.1