about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <git@emile.space>2025-02-13 20:32:50 +0100
committerEmile <git@emile.space>2025-02-13 20:32:50 +0100
commit3c8bd0f40de42102dd4b66ef8a37d9d2a2009507 (patch)
treee374428578b8c13e2387042ae41e8fec365b6ae4
parenteca6f45c8bb5be4cbc1fc3a1ad68bb814b5ad116 (diff)
flake: build templates using hydra
-rw-r--r--flake.nix18
1 files changed, 16 insertions, 2 deletions
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;