From a550bbf1e0f48282703861e2cc33d3c7ba9c0b58 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 28 May 2026 03:46:59 +0900 Subject: [PATCH] bekkalokk/roundcube: use specialized builder for nginx root dir --- hosts/bekkalokk/services/webmail/roundcube.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/bekkalokk/services/webmail/roundcube.nix b/hosts/bekkalokk/services/webmail/roundcube.nix index 7d06efe..4ef199c 100644 --- a/hosts/bekkalokk/services/webmail/roundcube.nix +++ b/hosts/bekkalokk/services/webmail/roundcube.nix @@ -56,10 +56,10 @@ in locations."/roundcube" = { tryFiles = "$uri $uri/ =404"; index = "index.php"; - root = pkgs.runCommandLocal "roundcube-dir" { } '' - mkdir -p $out - ln -s ${cfg.package} $out/roundcube - ''; + root = pkgs.linkFarm "roundcube-dir" { + roundcube = "${cfg.package}"; + }; + extraConfig = '' location ~ ^/roundcube/(${builtins.concatStringsSep "|" [ # https://wiki.archlinux.org/title/Roundcube