diff --git a/nixos/modules/borgbackup.nix b/nixos/modules/borgbackup.nix index 6f5a153..e77d983 100644 --- a/nixos/modules/borgbackup.nix +++ b/nixos/modules/borgbackup.nix @@ -132,18 +132,11 @@ in { }; }; environment.persistence.${config.impermanence.name} = { - users.fsaccount.files = [ - /* - { - file = ".ssh/known_hosts"; - parentDirectory = { - user = "fsaccount"; - group = "users"; - mode = "u=rwx,g=,o="; - }; + users.fsaccount.directories = [ + { + directory = ".ssh"; # SSH Key with access to FS Account and known_hosts + mode = "u=rwx,g=,o="; } - */ - ".ssh/known_hosts" ]; }; sops.secrets.backupKey = {