add sshfs uninsane mount

This commit is contained in:
colin 2022-06-02 03:40:14 -07:00
parent 766460164f
commit 11bf25fe60
2 changed files with 26 additions and 0 deletions

View File

@ -2,6 +2,7 @@
{
imports = [
./fs.nix
./home-manager.nix
./nix-cache.nix
./users.nix

25
helpers/universal/fs.nix Normal file
View File

@ -0,0 +1,25 @@
{ pkgs, ... }:
{
fileSystems."/mnt/media-uninsane" = {
# device = "sshfs#colin@uninsane.org:/opt/uninsane/media";
device = "colin@uninsane.org:/opt/uninsane/media";
fsType = "fuse.sshfs";
options = [
"x-systemd.automount"
"_netdev"
"user"
"idmap=user"
"transform_symlinks"
"identityfile=/home/colin/.ssh/id_ed25519"
"allow_other"
"default_permissions"
"uid=1000"
"gid=1000"
];
};
environment.systemPackages = [
pkgs.sshfs-fuse
];
}