diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-02-17 18:31:41 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-02-17 21:24:02 +0530 |
commit | bf12a289b2e4c8f22d1be781408a6d1273fd3b04 (patch) | |
tree | 6bf2eb88598db2d47119247d92be7bfb7b688b48 /hosts/fscusat/modules/mirror/debian/default.nix | |
parent | 60ed7bde534f23be9e3ee5429f72cf63ac8bfff2 (diff) |
fscusat/modules/mirror: init
Diffstat (limited to 'hosts/fscusat/modules/mirror/debian/default.nix')
-rw-r--r-- | hosts/fscusat/modules/mirror/debian/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/hosts/fscusat/modules/mirror/debian/default.nix b/hosts/fscusat/modules/mirror/debian/default.nix new file mode 100644 index 0000000..da56ade --- /dev/null +++ b/hosts/fscusat/modules/mirror/debian/default.nix @@ -0,0 +1,22 @@ +{ 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"; + MAILTO = email; + }; + }; +} |