summaryrefslogblamecommitdiff
path: root/os/fscusat/modules/mirror/debian/default.nix
blob: c0a35cd9963de8f383924d6c92799946a64e30cf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
                    

                                       










                                                
                                             


                                      
                     


      
{ config, ... }: let
  name = config.global.userdata.name;
  email = config.global.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";
      MAILTO = email;
    };
  };
}