Merge pull request #207748 from blargg/wiki-js

nixos/wiki-js: Add git and openssh to the wiki-js service path to enable git backups.
This commit is contained in:
Maximilian Bosch 2023-01-17 08:35:58 +01:00 committed by GitHub
commit 91054ce6ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}