add extraOCCCommands option
This commit is contained in:
parent
41f6fcc324
commit
f97c7e1cd7
4 changed files with 25 additions and 1268 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -35,11 +35,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1719426051,
|
"lastModified": 1720954236,
|
||||||
"narHash": "sha256-yJL9VYQhaRM7xs0M867ZFxwaONB9T2Q4LnGo1WovuR4=",
|
"narHash": "sha256-1mEKHp4m9brvfQ0rjCca8P1WHpymK3TOr3v34ydv9bs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "89c49874fb15f4124bf71ca5f42a04f2ee5825fd",
|
"rev": "53e81e790209e41f0c1efa9ff26ff2fd7ab35e27",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -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"];
|
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 = {
|
services.phpfpm.pools.nextcloud.settings = {
|
||||||
"listen.owner" = webserver.user;
|
"listen.owner" = webserver.user;
|
||||||
"listen.group" = webserver.group;
|
"listen.group" = webserver.group;
|
||||||
|
|
|
||||||
1257
nextcloud.nix
1257
nextcloud.nix
File diff suppressed because it is too large
Load diff
|
|
@ -5,14 +5,7 @@
|
||||||
cores = 4;
|
cores = 4;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Workaround for bug, disable pretty urls
|
|
||||||
# https://github.com/nextcloud/server/issues/44685
|
|
||||||
disabledModules = [
|
|
||||||
"services/web-apps/nextcloud.nix"
|
|
||||||
];
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./nextcloud.nix
|
|
||||||
./nextcloud-extras.nix
|
./nextcloud-extras.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -93,8 +86,12 @@
|
||||||
};
|
};
|
||||||
appstoreEnable = true;
|
appstoreEnable = true;
|
||||||
configureRedis = true;
|
configureRedis = true;
|
||||||
|
extraOCCCommands = ''
|
||||||
|
${config.services.nextcloud.occ}/bin/nextcloud-occ app:enable cleanup
|
||||||
|
'';
|
||||||
settings = {
|
settings = {
|
||||||
log_type = "syslog";
|
log_type = "file";
|
||||||
|
loglevel = 1;
|
||||||
mail_smtpmode = "sendmail";
|
mail_smtpmode = "sendmail";
|
||||||
mail_sendmailmode = "pipe";
|
mail_sendmailmode = "pipe";
|
||||||
trusted_domains = [ "10.100.100.1" ];
|
trusted_domains = [ "10.100.100.1" ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue