+ services.duplyBackup.enable = true;
+ services.duplyBackup.profiles.oldies.rootDir = "/var/lib/oldies";
+
+ secrets.keys = [
+ {
+ dest = "rsync_backup/identity";
+ user = "root";
+ group = "root";
+ permissions = "0400";
+ text = config.myEnv.rsync_backup.ssh_key.private;
+ }
+ ];
+ programs.ssh.knownHosts.dilion = {
+ hostNames = ["dilion.immae.eu"];
+ publicKey = let
+ profile = config.myEnv.rsync_backup.profiles.dilion;
+ in
+ "${profile.host_key_type} ${profile.host_key}";
+ };