My nix-darwin and NixOS config
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

nextcloud: add daily files:scan timer

+20
+20
modules/nextcloud.nix
··· 183 183 services.phpfpm.pools.nextcloud.settings = { 184 184 "request_terminate_timeout" = "3600"; 185 185 }; 186 + 187 + # Periodically scan the data directory so files added directly to /srv 188 + # (e.g. large archives copied via rsync) are picked up by Nextcloud. 189 + systemd.services.nextcloud-files-scan = { 190 + description = "Nextcloud periodic file scan"; 191 + after = [ "nextcloud-setup.service" ]; 192 + serviceConfig = { 193 + Type = "oneshot"; 194 + User = "nextcloud"; 195 + ExecStart = "${config.services.nextcloud.occ}/bin/nextcloud-occ files:scan --all"; 196 + }; 197 + }; 198 + 199 + systemd.timers.nextcloud-files-scan = { 200 + wantedBy = [ "timers.target" ]; 201 + timerConfig = { 202 + OnCalendar = "daily"; 203 + Persistent = true; 204 + }; 205 + }; 186 206 }