nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

seedbox.nix (605B)


      1 { pkgs, vars, ... }:
      2 
      3 {
      4   environment.systemPackages = [ pkgs.rclone ];
      5   programs.fuse.userAllowOther = true;
      6 
      7   fileSystems."/home/${vars.user.username}/seedbox" = {
      8     device = "seedbox:";
      9     fsType = "rclone";
     10     options = [
     11       "nodev"
     12       "nofail"
     13       "noauto"
     14       "_netdev"
     15       "allow_other"
     16       "args2env"
     17       "config=/home/${vars.user.username}/.config/rclone/rclone.conf"
     18       "uid=1000"
     19       "gid=100"
     20       "vfs-cache-mode=writes"
     21       "x-systemd.automount"
     22       "x-systemd.idle-timeout=300"     # unmount after 5 min idle
     23       "x-systemd.mount-timeout=30"
     24     ];
     25   };
     26 }