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