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"]; + }; + }; }