From 9b7ed17b27157a25e57a6e38be3bcfeaa70ec9e8 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sat, 21 Dec 2024 15:47:10 +0100 Subject: muhammed: Remove dead sshfs mount --- hosts/muhammed/wraaath-sshfs/default.nix | 47 -------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 hosts/muhammed/wraaath-sshfs/default.nix (limited to 'hosts/muhammed/wraaath-sshfs') diff --git a/hosts/muhammed/wraaath-sshfs/default.nix b/hosts/muhammed/wraaath-sshfs/default.nix deleted file mode 100644 index dcec544..0000000 --- a/hosts/muhammed/wraaath-sshfs/default.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ - pkgs, - config, - ... -}: { - # TEMP: Tell age that secrets should be decrypted through personal key. - # FIXME: These should probably be rekeyed with a system-wide key. - age.identityPaths = [ - "${config.users.users.linus.home}/.ssh/id_rsa" - ]; - - # The current setup is an SFTP server with the username 'linus' and a - # password. This is far from ideal but beggars can't be choosers... - age.secrets.wraaath-sftp-password.file = ../../../secrets/wraaath-sftp-password.txt.age; - - launchd.daemons.wraaath-sftp = { - script = '' - set -xue - - # Create the mount point. - # Should be automatically deleted upon unmount. - mkdir -p /Volumes/Wraaath - - # Get rid of potential leftover mount from graceless exit. - umount /Volumes/Wraaath || true - diskutil umount force /Volumes/Wraaath || true - - # Start a MacFUSE daemon. - # Will run in background mode, as foreground mode broke everything for some reason. - exec ${pkgs.sshfs}/bin/sshfs linus@ddns.wraaath.com:/ /Volumes/Wraaath \ - -p 2222 \ - -o volname=Wraath \ - -o reconnect \ - -o kill_on_unmount \ - -o allow_other \ - -o password_stdin <${config.age.secrets.wraaath-sftp-password.path} - ''; - - serviceConfig = { - # XXX - AbandonProcessGroup = true; - - # XXX - KeepAlive.NetworkState = true; - }; - }; -} -- cgit v1.2.3