From 7fcebbdbbc35f2104465604655038a9c350a423c Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Fri, 16 Feb 2024 03:24:36 +0100 Subject: init static.nomath.org --- systems/system1/configuration.nix | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) (limited to 'systems') diff --git a/systems/system1/configuration.nix b/systems/system1/configuration.nix index 9910511..59e8d5f 100644 --- a/systems/system1/configuration.nix +++ b/systems/system1/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ @@ -6,15 +6,29 @@ ../../configs ]; - networking.hostName = "system1"; + config = lib.mkMerge [ + { + networking.hostName = "system1"; + } + { + 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."static-nomath-org".domain = "static.nomath.org"; + fysiweb-apps.public.static-website."static-nomath-org".root = "${pkgs.static-nomath-org}"; + } + { + fysiweb-apps.public.cgit."code-nomath-org".domain = "code.nomath.org"; - fysiweb-apps.public.static-website."nomath-org".domain = "nomath.org"; - fysiweb-apps.public.static-website."nomath-org".root = "${pkgs.nomath-website}"; + fysiweb-apps.public.cgit."code-nomath-org".repositories."nomath-org".description = "nomath.org website"; + fysiweb-apps.public.cgit."code-nomath-org".repositories."static-nomath-org".description = "static.nomath.org website"; - fysiweb-apps.public.cgit."code-nomath-org".domain = "code.nomath.org"; - fysiweb-apps.public.cgit."code-nomath-org".settings.max-stats = "year"; - fysiweb-apps.public.cgit."code-nomath-org".settings.root-desc = ""; - fysiweb-apps.public.cgit."code-nomath-org".settings.root-title = "code.nomath.org"; - - fysiweb-apps.public.cgit."code-nomath-org".repositories."website".description = "nomath.org website"; + fysiweb-apps.public.cgit."code-nomath-org".settings.css = "https://static.nomath.org/cgit.css"; + fysiweb-apps.public.cgit."code-nomath-org".settings.logo = "https://static.nomath.org/logo_cgit.png"; + fysiweb-apps.public.cgit."code-nomath-org".settings.max-stats = "year"; + fysiweb-apps.public.cgit."code-nomath-org".settings.root-desc = ""; + fysiweb-apps.public.cgit."code-nomath-org".settings.root-title = "code.nomath.org"; + } + ]; } -- cgit v1.2.3