From eef1f70919005ee80f396b546a56351fe0ad8fe3 Mon Sep 17 00:00:00 2001 From: Tom Jankauski Date: Sat, 24 Dec 2022 13:20:39 -0800 Subject: [PATCH] nixos/wiki-js: Add git and openssh to enable git backups. --- nixos/modules/services/web-apps/wiki-js.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/wiki-js.nix b/nixos/modules/services/web-apps/wiki-js.nix index b6e5b4594f1d..b0210c8a5d2b 100644 --- a/nixos/modules/services/web-apps/wiki-js.nix +++ b/nixos/modules/services/web-apps/wiki-js.nix @@ -113,7 +113,13 @@ in { documentation = [ "https://docs.requarks.io/" ]; wantedBy = [ "multi-user.target" ]; - path = with pkgs; [ coreutils ]; + path = with pkgs; [ + # Needed for git storage. + git + # Needed for git+ssh storage. + openssh + ]; + preStart = '' ln -sf ${configFile} /var/lib/${cfg.stateDirectoryName}/config.yml ln -sf ${pkgs.wiki-js}/server /var/lib/${cfg.stateDirectoryName}