summaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2025-01-19 14:06:11 -0500
committerKleidi Bujari <mail@4kb.net>2025-01-19 14:06:11 -0500
commite181e1e1a154b280a2dc045d1d38b13d7f0ef2bc (patch)
tree4adad9e6e9b5a54add1304e2979f1b40087d7eaa /mod
parent6475b91999702c3ecc25604bd2b2fad9c7f3f490 (diff)
downloaddepot-e181e1e1a154b280a2dc045d1d38b13d7f0ef2bc.tar.gz
depot-e181e1e1a154b280a2dc045d1d38b13d7f0ef2bc.tar.bz2
depot-e181e1e1a154b280a2dc045d1d38b13d7f0ef2bc.zip
switch blog to symlink with others
Diffstat (limited to 'mod')
-rw-r--r--mod/web/blog/default.nix39
1 files changed, 27 insertions, 12 deletions
diff --git a/mod/web/blog/default.nix b/mod/web/blog/default.nix
index 5d76e7a..1f91a68 100644
--- a/mod/web/blog/default.nix
+++ b/mod/web/blog/default.nix
@@ -1,15 +1,30 @@
-{ pkgs, ... }: pkgs.stdenvNoCC.mkDerivation {
- pname = "4kb.net";
- version = "1.0";
- src = ./.;
+{ pkgs, depot, ... }:
+let
+ inherit (pkgs)
+ symlinkJoin
+ ;
- nativeBuildInputs = with pkgs; [
- zola
- ];
+ posts = pkgs.stdenvNoCC.mkDerivation {
+ pname = "4kb.net";
+ version = "1.0";
+ src = ./.;
+
+ nativeBuildInputs = with pkgs; [
+ zola
+ ];
- buildPhase = "zola build";
- installPhase = ''
- mkdir -p $out
- cp -r public/* $out/
- '';
+ buildPhase = "zola build";
+ installPhase = ''
+ mkdir -p $out
+ cp -r public/* $out/
+ '';
+ };
+
+in
+symlinkJoin {
+ name = "site";
+ paths = [
+ posts
+ depot.misc.cv
+ ];
}