From d6d121ab11ccbca046ed203f187a5336e3eb6443 Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 6 Sep 2023 11:18:45 -0700 Subject: [PATCH] Make sure config dir exists in container --- nextcloud-container.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/nextcloud-container.nix b/nextcloud-container.nix index a6178ad..af2519b 100644 --- a/nextcloud-container.nix +++ b/nextcloud-container.nix @@ -56,14 +56,6 @@ in { }; config = mkIf cfg.enable { - # systemd = { - # tmpfiles.rules = [ - # "d ${cfg.state-directory}/home 0700 root root - -" - # "d ${cfg.state-directory}/data 0700 root root - -" - # "d ${cfg.state-directory}/postgres 0700 root root - -" - # ]; - # }; - fudo.secrets.host-secrets."${hostname}" = { nextcloudAdminPasswd = { source-file = @@ -88,6 +80,11 @@ in { mode = "0400"; user = "nextcloud"; }; + systemd.tmpfiles.rules = [ + "d /var/lib/nextcloud/data 0700 nextcloud root - -" + "d /var/lib/nextcloud/data/config 0700 nextcloud root - -" + "d /var/lib/nextcloud/home 0700 nextcloud root - -" + ]; services = { nscd.enable = false; postgresql.enable = true;