From 3c8bd0f40de42102dd4b66ef8a37d9d2a2009507 Mon Sep 17 00:00:00 2001 From: Emile Date: Thu, 13 Feb 2025 20:32:50 +0100 Subject: flake: build templates using hydra --- flake.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 5303edc..0e463ff 100644 --- a/flake.nix +++ b/flake.nix @@ -213,9 +213,15 @@ } ); - hydraJobs = { - inherit (self) packages; + hydraJobs = let + goapp-flake = import ./nix/templates/goapp/flake.nix; + goapp-flake-outputs = goapp-flake.outputs { + inherit self nixpkgs flake-utils; + }; + in { + inherit (self) packages templates; nixosConfigurations = helper.buildHosts self.nixosConfigurations; + goapp-packages = goapp-flake.packages.""."backend-pkg"; }; templates = { @@ -235,6 +241,14 @@ - ... ''; }; + goapp = { + description = "A basic golang service"; + path = ./nix/templates/goapp; + welcomeText = '' + # A basic golang service + + - using gorilla/mux + ''; }; # checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib; -- cgit 1.4.1