summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2025-09-06 12:06:00 -0600
committerAlejandro Soto <alejandro@34project.org>2025-09-06 12:19:13 -0600
commitd8b9cf1f61cc07d625f1c37ccc28adfd58918416 (patch)
treebaeba46681c889ba77aaf1025dd95bf429cb13a2
parentd6ae13d24c0e145ab612091818105b271c4a8cb8 (diff)
sys/web/sites/portal: enable static site at sysret.org
Diffstat (limited to '')
-rw-r--r--pkgs/default.nix5
-rw-r--r--pkgs/zola-static/default.nix18
-rw-r--r--sys/web/sites/portal.nix2
3 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 6ddcb70..9f74497 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -27,6 +27,11 @@ in {
tmux-open = callPackage ./tmux-open {};
tmux-pass = callPackage ./tmux-pass.nix {};
+ sysret-static = callPackage ./zola-static {
+ site = "sysret.org";
+ src = "${flakes.self}/sysret.org";
+ };
+
st = prev.st.override {
conf = import ./st.nix {};
diff --git a/pkgs/zola-static/default.nix b/pkgs/zola-static/default.nix
new file mode 100644
index 0000000..a975ae3
--- /dev/null
+++ b/pkgs/zola-static/default.nix
@@ -0,0 +1,18 @@
+{
+ stdenv,
+ zola,
+ site,
+ src,
+}:
+stdenv.mkDerivation {
+ pname = "${site}-static";
+ version = "0.0.1"; #TODO
+
+ inherit src;
+
+ nativeBuildInputs = [ zola ];
+
+ buildPhase = ''
+ zola build --output-dir $out
+ '';
+}
diff --git a/sys/web/sites/portal.nix b/sys/web/sites/portal.nix
index 93b01bd..c4d948e 100644
--- a/sys/web/sites/portal.nix
+++ b/sys/web/sites/portal.nix
@@ -1,6 +1,7 @@
{
config,
lib,
+ pkgs,
...
}:
with lib; let
@@ -31,6 +32,7 @@ in {
serverAliases = [domains.sysret.www];
locations = {
+ "/".alias = "${pkgs.local.sysret-static}/";
"/fsociety".return = "301 https://meet.posixlycorrect.com/%C6%92%C6%A8%C5%8F%C4%8B%D3%80%C9%99%CF%AE%D0%A3";
"/.well-known/openpgpkey/hu/".alias = "/var/lib/pgp-wkd/";
};