From 606d121ba0b5f36f9a6419c48e6986a27ac1f5b0 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Tue, 20 Feb 2024 07:00:30 +0100 Subject: add abuilder service --- systems/system1/configuration.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'systems') diff --git a/systems/system1/configuration.nix b/systems/system1/configuration.nix index 343ed53..4f47b3c 100644 --- a/systems/system1/configuration.nix +++ b/systems/system1/configuration.nix @@ -1,9 +1,12 @@ { lib, pkgs, ... }: { imports = [ + # TODO auto-load config ../../configs + # TODO auto-load modules + ../../modules/abuilder ]; config = lib.mkMerge [ @@ -12,15 +15,16 @@ } { fysiweb-apps.public.static-website."nomath-org".domain = "nomath.org"; - fysiweb-apps.public.static-website."nomath-org".root = "${pkgs.nomath-org}"; + fysiweb-apps.public.static-website."nomath-org".root = "/var/lib/abuilder/nomath-org/main"; } { fysiweb-apps.public.static-website."static-nomath-org".domain = "static.nomath.org"; - fysiweb-apps.public.static-website."static-nomath-org".root = "${pkgs.static-nomath-org}"; + fysiweb-apps.public.static-website."static-nomath-org".root = "/var/lib/abuilder/static-nomath-org/main"; } { fysiweb-apps.public.cgit."code-nomath-org".domain = "code.nomath.org"; + fysiweb-apps.public.cgit."code-nomath-org".repositories."abuilder".description = "simple build daemon"; fysiweb-apps.public.cgit."code-nomath-org".repositories."anissue".description = "in-source issue management"; fysiweb-apps.public.cgit."code-nomath-org".repositories."apaperless".description = "document archival system"; fysiweb-apps.public.cgit."code-nomath-org".repositories."infra".description = "nomath.org infrastructure"; @@ -34,5 +38,13 @@ fysiweb-apps.public.cgit."code-nomath-org".settings.root-desc = ""; fysiweb-apps.public.cgit."code-nomath-org".settings.root-title = "code.nomath.org"; } + { + # TODO add abuilder fysiweb app + services.abuilder.enable = true; + services.abuilder.repositories = [ + "/var/lib/git/nomath-org" + "/var/lib/git/static-nomath-org" + ]; + } ]; } -- cgit v1.2.3