From b047f80dd113eb7beed24f9a46d03999fc52b460 Mon Sep 17 00:00:00 2001 From: ltadeu6 Date: Mon, 25 May 2026 17:28:12 -0300 Subject: [PATCH] Add Nextcloud to NixOracle with dynamic project homepage - services.nextcloud with PostgreSQL, hostName nextcloud.tadix.dev - nginx vhost with ACME for nextcloud.tadix.dev - Homepage PROJECTS section now fetches repos from Forgejo API - Added nextcloud link to footer --- hosts/NixOracle/configuration.nix | 21 +++++++++++++++++++ hosts/NixOracle/site/index.html | 34 +++++++++++++++++++++++++------ 2 files changed, 49 insertions(+), 6 deletions(-) diff --git a/hosts/NixOracle/configuration.nix b/hosts/NixOracle/configuration.nix index 88905e7..c607d0a 100644 --- a/hosts/NixOracle/configuration.nix +++ b/hosts/NixOracle/configuration.nix @@ -69,6 +69,7 @@ in { systemd.tmpfiles.rules = [ "d /home/${username}/notebooks 0750 ${username} users -" + "d /etc/nextcloud-secrets 0750 nextcloud nextcloud -" ]; environment.etc."jupyter/jupyter_server_config.py".text = '' @@ -95,6 +96,10 @@ in { forceSSL = true; root = "${site}"; }; + virtualHosts."nextcloud.tadix.dev" = { + enableACME = true; + forceSSL = true; + }; virtualHosts."git.tadix.dev" = { enableACME = true; forceSSL = true; @@ -129,6 +134,22 @@ in { }; }; + services.nextcloud = { + enable = true; + package = pkgs.nextcloud31; + hostName = "nextcloud.tadix.dev"; + https = true; + database.createLocally = true; + config = { + adminuser = "admin"; + adminpassFile = "/etc/nextcloud-secrets/admin-password"; + }; + settings = { + default_phone_region = "BR"; + maintenance_window_start = 1; + }; + }; + services.forgejo = { enable = true; database.type = "sqlite3"; diff --git a/hosts/NixOracle/site/index.html b/hosts/NixOracle/site/index.html index 3e3df24..c17c4ab 100644 --- a/hosts/NixOracle/site/index.html +++ b/hosts/NixOracle/site/index.html @@ -22,12 +22,7 @@

PROJECTS

-

- BioLab - — bioprocess modeling and parameter estimation tool -
- source · live -

+

— loading —

@@ -42,6 +37,33 @@ github git jupyter + nextcloud + +