feat: nextcloud test

This commit is contained in:
Nick 2024-10-18 12:18:07 -05:00
parent 65d2e9bb66
commit f7e4d19725

View file

@ -21,16 +21,16 @@ in {
https = true;
package = pkgs.nextcloud30;
phpOptions."opcache.interned_strings_buffer" = "24";
# extraAppsEnable = true;
# extraApps = {
# inherit
# (config.services.nextcloud.package.packages.apps)
# calendar
# ;
# };
extraAppsEnable = true;
extraApps = {
inherit
(config.services.nextcloud.package.packages.apps)
calendar
;
};
config = {
adminpassFile = config.sops.secrets."${nextcloud.name}-pass".path;
# adminuser = "admin";
adminuser = "admin";
dbtype = "pgsql";
};
database = {
@ -103,17 +103,17 @@ in {
);
};
# fileSystems."/var/lib/${nextcloud.name}" = {
# device = nextcloud.paths.path0;
# fsType = "none";
# options = ["bind"];
# depends = [server.storage0.mount];
# };
fileSystems."/var/lib/${nextcloud.name}" = {
device = nextcloud.paths.path0;
fsType = "none";
options = ["bind"];
depends = [server.storage0.mount];
};
# systemd.tmpfiles.rules = [
# "Z ${nextcloud.paths.path0} 750 ${nextcloud.name} ${nextcloud.name} -"
# "Z ${nextcloud.sops.path0} 750 ${nextcloud.name} ${nextcloud.name} -"
# ];
systemd.tmpfiles.rules = [
"Z ${nextcloud.paths.path0} 750 ${nextcloud.name} ${nextcloud.name} -"
# "Z ${nextcloud.sops.path0} 750 ${nextcloud.name} ${nextcloud.name} -"
];
users.users.${nextcloud.name}.extraGroups = ["caddy" "nginx" "postgres"];