leonard: Add amalie-mansaker-no

This commit is contained in:
Felix Albrigtsen 2025-11-23 17:22:20 +01:00
parent 9eed01bb4a
commit 520a96878b
4 changed files with 42 additions and 9 deletions

View File

@ -54,6 +54,7 @@ in {
''; '';
} // overrides; } // overrides;
in { in {
"amalie.mansaker.no" = publicProxy "http://leonard.home.feal.no/" { };
"cloud.feal.no" = publicProxy "" { "cloud.feal.no" = publicProxy "" {
locations."/" = { locations."/" = {
proxyPass = "http://challenger.home.feal.no"; proxyPass = "http://challenger.home.feal.no";
@ -62,17 +63,11 @@ in {
''; '';
}; };
}; };
"feal.no" = publicProxy "http://leonard.home.feal.no/" { "feal.no" = publicProxy "http://leonard.home.feal.no/" { serverAliases = [ "www.feal.no" ]; };
serverAliases = [ "www.feal.no" ]; "git.feal.no" = publicProxy "http://unix:${gitea.server.HTTP_ADDR}" { default = true; };
};
"git.feal.no" = publicProxy "http://unix:${gitea.server.HTTP_ADDR}" {
default = true;
};
"iam.feal.no" = publicProxy "http://${keycloak.http-host}:${toString keycloak.http-port}" { }; "iam.feal.no" = publicProxy "http://${keycloak.http-host}:${toString keycloak.http-port}" { };
"jf.feal.no" = publicProxy "http://jellyfin.home.feal.no/" { }; "jf.feal.no" = publicProxy "http://jellyfin.home.feal.no/" { };
"kinealbrigtsen.no" = publicProxy "http://leonard.home.feal.no/" { "kinealbrigtsen.no" = publicProxy "http://leonard.home.feal.no/" { serverAliases = [ "www.kinealbrigtsen.no" ]; };
serverAliases = [ "www.kinealbrigtsen.no" ];
};
"wiki.wackattack.eu" = publicProxy "http://leonard.home.feal.no/" { }; "wiki.wackattack.eu" = publicProxy "http://leonard.home.feal.no/" { };
}; };
} }

View File

@ -15,6 +15,7 @@
./services/wiki-wackattack-eu.nix ./services/wiki-wackattack-eu.nix
./services/www-feal-no ./services/www-feal-no
./services/www-kinealbrigtsen-no.nix ./services/www-kinealbrigtsen-no.nix
./services/www-amalie-mansaker-no
]; ];
boot.loader.systemd-boot.enable = lib.mkForce false; boot.loader.systemd-boot.enable = lib.mkForce false;

View File

@ -0,0 +1,11 @@
{ config, pkgs, lib, ... }:
{
services.nginx.virtualHosts."amalie.mansaker.no" = let
siteContent = pkgs.callPackage ./site.nix { };
in {
locations = {
"/".root = siteContent;
};
};
}

View File

@ -0,0 +1,26 @@
{ stdenv, fetchgit, hugo }:
stdenv.mkDerivation {
name = "www-amalie-mansaker-no";
src = fetchgit {
url = "https://git.feal.no/amalieem/amalie.mansaker.no.git";
fetchSubmodules = true;
rev = "58265a25b37bf2286e0704e02ab3dde56a348d8b";
hash = "sha256-dPcv0AGjsWqDCWCjV2PeklBrWsIawLAccRQEYe3teOM=";
};
nativeBuildInputs = [ hugo ];
buildPhase = ''
cp -r $src/* .
${hugo}/bin/hugo
'';
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r public/* $out/
runHook postInstall
'';
}