diff options
| author | Alejandro Soto <alejandro@34project.org> | 2025-09-06 12:06:00 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2025-09-06 12:19:13 -0600 |
| commit | d8b9cf1f61cc07d625f1c37ccc28adfd58918416 (patch) | |
| tree | baeba46681c889ba77aaf1025dd95bf429cb13a2 /pkgs | |
| parent | d6ae13d24c0e145ab612091818105b271c4a8cb8 (diff) | |
sys/web/sites/portal: enable static site at sysret.org
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/default.nix | 5 | ||||
| -rw-r--r-- | pkgs/zola-static/default.nix | 18 |
2 files changed, 23 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 + ''; +} |
