From 30c2f5ede4bac5009e3e8c59121e5c426f1acd9f Mon Sep 17 00:00:00 2001 From: Gonne Date: Wed, 7 Feb 2024 19:28:16 +0100 Subject: [PATCH] Korrigiere Dateirechte --- nixos/modules/borgbackup.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/modules/borgbackup.nix b/nixos/modules/borgbackup.nix index da083cb..e86f06b 100644 --- a/nixos/modules/borgbackup.nix +++ b/nixos/modules/borgbackup.nix @@ -125,7 +125,12 @@ in { }; environment.persistence.${config.impermanence.name} = { directories = [ - "/home/fsaccount/.ssh" # SSH Key with access to FS Account and Borg repo and known_hosts + { + directory = "/home/fsaccount/.ssh"; # SSH Key with access to FS Account and Borg repo and known_hosts + user = "fsaccount"; + group = "users"; + mode = "u=rwx,g=,o="; + } ]; }; # Extra user for FS account backup