commit d813d04f87f6e22507c60b2ad737a2902a45cb4c parent fd21b3cd8309e92fcaa194746bff747970d5469e Author: Peter <peter@minskio.co.uk> Date: Mon, 5 Oct 2026 22:34:51 +0100 Add on-demand seedbox mount script Diffstat:
| A | common/seedbox.nix | | | 26 | ++++++++++++++++++++++++++ |
| M | machines/arcadia.nix | | | 1 | + |
2 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/common/seedbox.nix b/common/seedbox.nix @@ -0,0 +1,26 @@ +{ pkgs, vars, ... }: + +{ + environment.systemPackages = [ pkgs.rclone ]; + programs.fuse.userAllowOther = true; + + fileSystems."/home/${vars.user.username}/seedbox" = { + device = "seedbox:"; + fsType = "rclone"; + options = [ + "nodev" + "nofail" + "noauto" + "_netdev" + "allow_other" + "args2env" + "config=/home/${vars.user.username}/.config/rclone/rclone.conf" + "uid=1000" + "gid=100" + "vfs-cache-mode=writes" + "x-systemd.automount" + "x-systemd.idle-timeout=300" # unmount after 5 min idle + "x-systemd.mount-timeout=30" + ]; + }; +} diff --git a/machines/arcadia.nix b/machines/arcadia.nix @@ -21,6 +21,7 @@ ../common/networking.nix ../common/nfs.nix ../common/packages.nix + ../common/seedbox.nix ../common/ssh.nix ../common/syncthing.nix ../common/user.nix