aboutsummaryrefslogtreecommitdiff
path: root/flakes/rsync_backup
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2023-10-04 01:35:06 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2023-10-04 02:11:48 +0200
commit1a64deeb894dc95e2645a75771732c6cc53a79ad (patch)
tree1b9df4838f894577a09b9b260151756272efeb53 /flakes/rsync_backup
parentfa25ffd4583cc362075cd5e1b4130f33306103f0 (diff)
downloadNix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz
Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst
Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip
Squash changes containing private information
There were a lot of changes since the previous commit, but a lot of them contained personnal information about users. All thos changes got stashed into a single commit (history is kept in a different place) and private information was moved in a separate private repository
Diffstat (limited to 'flakes/rsync_backup')
-rw-r--r--flakes/rsync_backup/flake.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/flakes/rsync_backup/flake.nix b/flakes/rsync_backup/flake.nix
index 6d359e5..d81d176 100644
--- a/flakes/rsync_backup/flake.nix
+++ b/flakes/rsync_backup/flake.nix
@@ -183,7 +183,7 @@
183 if [ "$skip" != "$DEST" ]; then 183 if [ "$skip" != "$DEST" ]; then
184 ''; 184 '';
185 backup_profile_tail = name: profile: '' 185 backup_profile_tail = name: profile: ''
186 ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -i ${ssh_key} -p $PORT $DEST sh -c "date > .cache/last_backup" 186 ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -i ${ssh_key} -p $PORT $DEST sh -c "date > .cache/last_backup" || true
187 fi # [ "$skip" != "$DEST" ] 187 fi # [ "$skip" != "$DEST" ]
188 ##### End ${name} ##### 188 ##### End ${name} #####
189 ''; 189 '';
@@ -228,7 +228,7 @@
228 ]; 228 ];
229 229
230 programs.ssh.knownHosts = lib.attrsets.mapAttrs' (name: profile: lib.attrsets.nameValuePair name { 230 programs.ssh.knownHosts = lib.attrsets.mapAttrs' (name: profile: lib.attrsets.nameValuePair name {
231 hostNames = [ profile.host ]; 231 extraHostNames = [ profile.host ];
232 publicKey = "${profile.host_key_type} ${profile.host_key}"; 232 publicKey = "${profile.host_key_type} ${profile.host_key}";
233 }) cfg.profiles; 233 }) cfg.profiles;
234 234