From 4458a4e5c8bcd6adf37438d1bf34eee16d61ddc6 Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 14 Oct 2025 12:05:33 +0200 Subject: [PATCH] feat(services/nextcloud): adding the rules for the hdd --- services/self_host/nextcloud.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/services/self_host/nextcloud.nix b/services/self_host/nextcloud.nix index 2893a58..8dfac1c 100644 --- a/services/self_host/nextcloud.nix +++ b/services/self_host/nextcloud.nix @@ -14,6 +14,16 @@ in environment.systemPackages = with pkgs; [ php ]; + users = { + groups.datausers = { }; + users = { + nextcloud.extraGroups = [ "datausers" ]; + }; + }; + + systemd.tmpfiles.rules = [ + "d /mnt/data 2770 root datausers -" + ]; services = { nextcloud = { enable = true;