From 60ed7bde534f23be9e3ee5429f72cf63ac8bfff2 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 17 Feb 2024 12:21:58 +0530 Subject: fscusat/modules/ftpsync: init --- hosts/fscusat/modules/ftpsync/default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 hosts/fscusat/modules/ftpsync/default.nix (limited to 'hosts/fscusat/modules/ftpsync/default.nix') diff --git a/hosts/fscusat/modules/ftpsync/default.nix b/hosts/fscusat/modules/ftpsync/default.nix new file mode 100644 index 0000000..aa214ac --- /dev/null +++ b/hosts/fscusat/modules/ftpsync/default.nix @@ -0,0 +1,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"; + }; + }; +} -- cgit v1.2.3