nix-configs

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

rclone.nix (818B)


      1 { vars, ... }:
      2 
      3 {
      4   programs.rclone = {
      5     enable = true;
      6     remotes = {
      7       artemis.config = {
      8         type = "sftp";
      9         host = "${vars.user.domain}";
     10         port = vars.secrets.sshport;
     11         user = "${vars.user.username}";
     12         key_file = "${vars.secrets.privatekey}";
     13         shell_type = "cmd";
     14         };
     15       seedbox.config = {
     16         type = "alias";
     17         remote = "artemis:/tank/complete";
     18         };
     19       incomplete.config = {
     20         type = "alias";
     21         remote = "artemis:/tank/incomplete";
     22         };
     23       phone.config = {
     24         type = "sftp";
     25         host = "phone";
     26         port = "1234";
     27         user = "ftp";
     28         key_file = "${vars.secrets.privatekey}";
     29         };
     30       nas.config = {
     31         type = "alias";
     32         remote = "/tank/media";
     33         };
     34       };
     35     };
     36 }