summaryrefslogtreecommitdiff
path: root/hosts/fscusat/modules/ftpsync/default.nix
blob: aa214ac1be62566deeb5a6d2c56a4b5a04c23736 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, ... }: let
  name = config.userdata.user;
  email = config.userdata.email;
in {
  imports = [ ./ftpsync.nix ];

  services.ftpsync = {
    enable = true;

    settings = {
      RSYNC_HOST = "ossmirror.mycloud.services";
      RSYNC_PATH = "debian";
      ARCH_INCLUDE = "amd64 riscv64";

      INFO_MAINTAINER="${name} <${email}>";
      INFO_COUNTRY = "IN";
      INFO_LOCATION = "Kochi, Kerala";
      INFO_THROUGHPUT = "1Gb";
    };
  };
}