about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2024-02-04 23:51:16 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2024-02-05 01:29:13 +0100
commit42daa009280483580adb987d3fb836c27a954687 (patch)
treef46b8a61a3f557e337b3e42ff3af6056fece4bdc /nixos
parentfe376a0a6a6b0bf8fde561e9c8fab153efc50a2f (diff)
downloadnixlib-42daa009280483580adb987d3fb836c27a954687.tar
nixlib-42daa009280483580adb987d3fb836c27a954687.tar.gz
nixlib-42daa009280483580adb987d3fb836c27a954687.tar.bz2
nixlib-42daa009280483580adb987d3fb836c27a954687.tar.lz
nixlib-42daa009280483580adb987d3fb836c27a954687.tar.xz
nixlib-42daa009280483580adb987d3fb836c27a954687.tar.zst
nixlib-42daa009280483580adb987d3fb836c27a954687.zip
nixos/nextcloud: little formatting
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/nextcloud.nix24
1 files changed, 15 insertions, 9 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix
index 8669f84b1cbb..e79c2d754f10 100644
--- a/nixos/modules/services/web-apps/nextcloud.nix
+++ b/nixos/modules/services/web-apps/nextcloud.nix
@@ -873,9 +873,11 @@ in {
     { systemd.timers.nextcloud-cron = {
         wantedBy = [ "timers.target" ];
         after = [ "nextcloud-setup.service" ];
-        timerConfig.OnBootSec = "5m";
-        timerConfig.OnUnitActiveSec = "5m";
-        timerConfig.Unit = "nextcloud-cron.service";
+        timerConfig = {
+          OnBootSec = "5m";
+          OnUnitActiveSec = "5m";
+          Unit = "nextcloud-cron.service";
+        };
       };
 
       systemd.tmpfiles.rules = map (dir: "d ${dir} 0750 nextcloud nextcloud - -") [
@@ -992,15 +994,19 @@ in {
         nextcloud-cron = {
           after = [ "nextcloud-setup.service" ];
           environment.NEXTCLOUD_CONFIG_DIR = "${datadir}/config";
-          serviceConfig.Type = "oneshot";
-          serviceConfig.User = "nextcloud";
-          serviceConfig.ExecStart = "${phpPackage}/bin/php -f ${webroot}/cron.php";
+          serviceConfig = {
+            Type = "oneshot";
+            User = "nextcloud";
+            ExecStart = "${lib.getExe phpPackage} -f ${webroot}/cron.php";
+          };
         };
         nextcloud-update-plugins = mkIf cfg.autoUpdateApps.enable {
           after = [ "nextcloud-setup.service" ];
-          serviceConfig.Type = "oneshot";
-          serviceConfig.ExecStart = "${occ}/bin/nextcloud-occ app:update --all";
-          serviceConfig.User = "nextcloud";
+          serviceConfig = {
+            Type = "oneshot";
+            ExecStart = "${occ}/bin/nextcloud-occ app:update --all";
+            User = "nextcloud";
+          };
           startAt = cfg.autoUpdateApps.startAt;
         };
       };