add extraOCCCommands option

This commit is contained in:
Jonas Heinrich 2024-07-18 12:50:10 +02:00
parent 41f6fcc324
commit f97c7e1cd7
4 changed files with 25 additions and 1268 deletions

View file

@ -73,6 +73,14 @@ in {
'';
};
extraOCCCommands = mkOption {
default = "";
type = types.lines;
example = "nextcloud-occ app:enable cleanup";
description = lib.mdDoc ''
Extra OCC commands which get executed after setup.
'';
};
};
};
@ -97,6 +105,15 @@ in {
after = ["nextcloud-setup.service"];
};
systemd.services.nextcloud-extra-occ-commands = {
enable = true;
script = ''
${cfg.extraOCCCommands}
'';
wantedBy = [ "multi-user.target" ];
after = ["nextcloud-setup.service"];
};
services.phpfpm.pools.nextcloud.settings = {
"listen.owner" = webserver.user;
"listen.group" = webserver.group;