From 11bf25fe60f118045d78fcacf0a5fd461033e24f Mon Sep 17 00:00:00 2001 From: colin Date: Thu, 2 Jun 2022 03:40:14 -0700 Subject: [PATCH] add sshfs uninsane mount --- helpers/universal/default.nix | 1 + helpers/universal/fs.nix | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 helpers/universal/fs.nix diff --git a/helpers/universal/default.nix b/helpers/universal/default.nix index 76522f0c..4d1c1044 100644 --- a/helpers/universal/default.nix +++ b/helpers/universal/default.nix @@ -2,6 +2,7 @@ { imports = [ + ./fs.nix ./home-manager.nix ./nix-cache.nix ./users.nix diff --git a/helpers/universal/fs.nix b/helpers/universal/fs.nix new file mode 100644 index 00000000..e7c623b4 --- /dev/null +++ b/helpers/universal/fs.nix @@ -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 + ]; +} +