From bf91fa550bafe772c61bb064724fe08e4475eb56 Mon Sep 17 00:00:00 2001 From: Chris <36116606+TophC7@users.noreply.github.com> Date: Wed, 25 Sep 2024 22:59:02 -0400 Subject: [PATCH] mounted SSHFS Pool @nix --- host/nix/hardware.nix | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/host/nix/hardware.nix b/host/nix/hardware.nix index 1068b3e..0f4817d 100644 --- a/host/nix/hardware.nix +++ b/host/nix/hardware.nix @@ -1,7 +1,23 @@ { - # TODO: SSHFS - # fileSystems."/" = { - # device = "/dev/sda1"; - # fsType = "ext4"; - # }; + programs.fuse.userAllowOther = true; + + fileSystems = { + "/pool" = { + device = "toph@104.40.4.24:/pool"; + fsType = "sshfs"; + options = [ + "defaults" + "reconnect" + "_netdev" + "allow_other" + "identityfile=/home/toph/.ssh/pve" + ]; + }; + + "/home/toph/git" = { + fsType = "none"; + device = "/pool/git"; + options = ["bind" "nofail"]; + }; + }; }