dotfiles/hosts/strix/configs/sshfs.nix

23 lines
761 B
Nix

{ ... }:
{
# ssh fs from jelylfin user on carbon for music
# TODO mkdir Music
# https://discourse.nixos.org/t/how-to-auto-mount-with-sshfs-as-a-normal-user/48276
fileSystems."/home/grape/Music" = {
device = "root@32.54.31.180:/home/jellyfin/music/Music";
fsType = "fuse.sshfs";
options = [
"IdentityFile=/home/grape/.ssh/id_ed25519"
"idmap=user"
#"sshfs_debug"
"x-systemd.automount" # < mount the filesystem automatically on first access
"allow_other" # < don't restrict access to only the user which `mount`s it (because that's probably systemd who mounts it, not you)
"user" # < allow manual `mount`ing, as ordinary user.
"_netdev"
];
};
boot.supportedFilesystems."fuse.sshfs" = true;
}