diff options
author | Tom Jankauski <tomjankauski@gmail.com> | 2022-12-24 13:20:39 -0800 |
---|---|---|
committer | Tom Jankauski <tomjankauski@gmail.com> | 2023-01-16 16:04:40 -0800 |
commit | eef1f70919005ee80f396b546a56351fe0ad8fe3 (patch) | |
tree | 937ed2132557310f91fb0fe2e38c647337b7507e /nixos | |
parent | 1e4b811793cda222eef4962b7d2dead7b19b6941 (diff) |
nixos/wiki-js: Add git and openssh to enable git backups.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/web-apps/wiki-js.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/wiki-js.nix b/nixos/modules/services/web-apps/wiki-js.nix index b6e5b4594f1da..b0210c8a5d2be 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} |