From f572d4eb91115b992361fddd3373a527518fdf05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Wed, 26 Jun 2019 15:51:40 +0200 Subject: [PATCH] duplicati: PermissionsStartOnly is deprecated --- nixos/modules/services/backup/duplicati.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nixos/modules/services/backup/duplicati.nix b/nixos/modules/services/backup/duplicati.nix index d2fe4698e885..a4b895d78a68 100644 --- a/nixos/modules/services/backup/duplicati.nix +++ b/nixos/modules/services/backup/duplicati.nix @@ -47,15 +47,11 @@ in wantedBy = [ "multi-user.target" ]; serviceConfig = { User = cfg.user; - PermissionsStartOnly = true; Group = "duplicati"; + StateDirectory = "/var/lib/duplicati"; ExecStart = "${pkgs.duplicati}/bin/duplicati-server --webservice-interface=${cfg.interface} --webservice-port=${toString cfg.port} --server-datafolder=/var/lib/duplicati"; Restart = "on-failure"; }; - preStart = '' - mkdir -p /var/lib/duplicati - chown -R ${cfg.user}:duplicati /var/lib/duplicati - ''; }; users.users.duplicati = lib.optionalAttrs (cfg.user == "duplicati") {