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