nix-setup/startsync.script.nix
2024-09-07 01:18:31 +02:00

14 lines
288 B
Nix

with import <nixpkgs> {};
pkgs.writeShellScriptBin "startsync" ''
#!/bin/sh
killall sshfs sftp
sleep 0.5
killall -9 sshfs sftp
sudo umount -l sync
sleep 0.5
sshfs -p 23 root@tudbut.de:sync ~/sync
while ! ls ~/sync/Passwords.kdbx ; do sleep 0.2 ; done
exec keepassxc
''