Files
nix/modules/sshfs.nix
2026-02-05 11:33:26 -06:00

23 lines
472 B
Nix

{ config, pkgs, ... }:
{
boot.supportedFilesystems = [ "fuse.sshfs" ];
environment.systemPackages = [ pkgs.sshfs ];
systemd.tmpfiles.rules = [
"d /mnt/box 0755 root root -"
];
fileSystems."/mnt/box" = {
device = "bug@box.bug.tools:/";
fsType = "fuse.sshfs";
options = [
"identityfile=/home/bug/.ssh/id_ed25519"
"allow_other"
"x-systemd.automount"
"noauto"
"reconnect"
"ServerAliveInterval=15"
];
};
}