summaryrefslogtreecommitdiff
path: root/hosts/fscusat/modules/ftpsync/default.nix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-02-17 12:21:58 +0530
committersinanmohd <sinan@sinanmohd.com>2024-02-17 18:26:04 +0530
commit60ed7bde534f23be9e3ee5429f72cf63ac8bfff2 (patch)
tree315b8237ac46c1f70ce06c19e541e4465a30ec26 /hosts/fscusat/modules/ftpsync/default.nix
parentcc89fdfae084f7a0e2b0b91b7c88ff5f0e6667cf (diff)
fscusat/modules/ftpsync: init
Diffstat (limited to 'hosts/fscusat/modules/ftpsync/default.nix')
-rw-r--r--hosts/fscusat/modules/ftpsync/default.nix21
1 files changed, 21 insertions, 0 deletions
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";
+ };
+ };
+}