From 366a7f6157953ad19ae2528636d228ef0081d2ae Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Fri, 3 Mar 2023 20:54:27 +0000 Subject: [PATCH] move nextcloud data directory --- modules/nixos/services/nextcloud.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/nixos/services/nextcloud.nix b/modules/nixos/services/nextcloud.nix index 8dee321..c6f6541 100644 --- a/modules/nixos/services/nextcloud.nix +++ b/modules/nixos/services/nextcloud.nix @@ -15,6 +15,7 @@ services.nextcloud = { enable = true; package = pkgs.nextcloud25; # Required to specify + datadir = "/data/nextcloud"; https = true; hostName = "localhost"; maxUploadSize = "50G"; @@ -52,6 +53,9 @@ before = [ "nextcloud-setup.service" ]; }; + # Grant user access to Nextcloud directories + users.users.${config.user}.extraGroups = [ "nextcloud" ]; + ## Backup config # Open to groups, allowing for backups