feat: nextcloud test

This commit is contained in:
Nick 2024-10-18 11:52:28 -05:00
parent 065ac57103
commit a0200b7657

View file

@ -6,12 +6,7 @@
}: let }: let
inherit (flake.config.people) user0; inherit (flake.config.people) user0;
inherit (flake.config.people.user.${user0}) domain; inherit (flake.config.people.user.${user0}) domain;
inherit inherit (flake.config.system.device) server wildcard;
(flake.config.system.device)
# server
wildcard
;
inherit (flake.config.service.instance) nextcloud nginx; inherit (flake.config.service.instance) nextcloud nginx;
localhost = wildcard.ip.address0; localhost = wildcard.ip.address0;
host = "${nextcloud.subdomain}.${domain.url1}"; host = "${nextcloud.subdomain}.${domain.url1}";
@ -24,7 +19,7 @@ in {
enable = true; enable = true;
hostName = host; hostName = host;
https = true; https = true;
package = pkgs.nextcloud30; package = pkgs.nextcloud29;
phpOptions."opcache.interned_strings_buffer" = "24"; phpOptions."opcache.interned_strings_buffer" = "24";
extraAppsEnable = true; extraAppsEnable = true;
extraApps = { extraApps = {
@ -108,17 +103,17 @@ in {
); );
}; };
# fileSystems."/var/lib/${nextcloud.name}" = { fileSystems."/var/lib/${nextcloud.name}" = {
# device = nextcloud.paths.path0; device = nextcloud.paths.path0;
# fsType = "none"; fsType = "none";
# options = ["bind"]; options = ["bind"];
# depends = [server.storage0.mount]; depends = [server.storage0.mount];
# }; };
# systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
# "Z ${nextcloud.paths.path0} 750 ${nextcloud.name} ${nextcloud.name} -" "Z ${nextcloud.paths.path0} 750 ${nextcloud.name} ${nextcloud.name} -"
# "Z ${nextcloud.sops.path0} 750 ${nextcloud.name} ${nextcloud.name} -" "Z ${nextcloud.sops.path0} 750 ${nextcloud.name} ${nextcloud.name} -"
# ]; ];
users.users.${nextcloud.name}.extraGroups = ["caddy" "nginx" "postgres"]; users.users.${nextcloud.name}.extraGroups = ["caddy" "nginx" "postgres"];