Commit ec6672f44d8c

Vincent Demeester <vincent@sbr.pm>
2025-12-01 11:38:24
fix: Enable wildcard expansion in kiwix-serve command
- Resolve service startup failures caused by unexpanded *.zim pattern - Wrap command in bash to enable shell wildcard expansion Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 34eeb3c
Changed files (1)
systems
sakhalin
systems/sakhalin/extra.nix
@@ -212,7 +212,7 @@
     serviceConfig = {
       Type = "simple";
       User = "vincent";
-      ExecStart = "${pkgs.kiwix-tools}/bin/kiwix-serve --port=8080 /mnt/gaia/kiwix/*.zim";
+      ExecStart = "${pkgs.bash}/bin/bash -c '${pkgs.kiwix-tools}/bin/kiwix-serve --port=8080 /mnt/gaia/kiwix/*.zim'";
       Restart = "on-failure";
       RestartSec = "5s";
     };