From a0200b7657dff82db26efe9874f220abd964b411 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 18 Oct 2024 11:52:28 -0500 Subject: [PATCH] feat: nextcloud test --- nixos/modules/services/nextcloud.nix | 29 ++++++++++++---------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/nixos/modules/services/nextcloud.nix b/nixos/modules/services/nextcloud.nix index 5cb039b..eddc373 100755 --- a/nixos/modules/services/nextcloud.nix +++ b/nixos/modules/services/nextcloud.nix @@ -6,12 +6,7 @@ }: let inherit (flake.config.people) user0; inherit (flake.config.people.user.${user0}) domain; - inherit - (flake.config.system.device) - # server - - wildcard - ; + inherit (flake.config.system.device) server wildcard; inherit (flake.config.service.instance) nextcloud nginx; localhost = wildcard.ip.address0; host = "${nextcloud.subdomain}.${domain.url1}"; @@ -24,7 +19,7 @@ in { enable = true; hostName = host; https = true; - package = pkgs.nextcloud30; + package = pkgs.nextcloud29; phpOptions."opcache.interned_strings_buffer" = "24"; extraAppsEnable = true; extraApps = { @@ -108,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"];