summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-12-21 15:47:10 +0100
committerLinnnus <[email protected]>2024-12-21 15:47:10 +0100
commit9b7ed17b27157a25e57a6e38be3bcfeaa70ec9e8 (patch)
tree60d778f29971bb0bcfdaecdbe2b75869b83afbe5 /hosts
parentd2f58a05dd027aac851ed154c8a05f851965533d (diff)
muhammed: Remove dead sshfs mount
Diffstat (limited to 'hosts')
-rw-r--r--hosts/muhammed/configuration.nix1
-rw-r--r--hosts/muhammed/wraaath-sshfs/default.nix47
2 files changed, 0 insertions, 48 deletions
diff --git a/hosts/muhammed/configuration.nix b/hosts/muhammed/configuration.nix
index 2cf8c3f..cb2216e 100644
--- a/hosts/muhammed/configuration.nix
+++ b/hosts/muhammed/configuration.nix
@@ -8,7 +8,6 @@
imports = [
./home
./remote-builders
- ./wraaath-sshfs
];
# Specify the location of this configuration file. Very meta.
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 [email protected]:/ /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;
- };
- };
-}