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