summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/udpt.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-08-21 12:07:05 +0200
committermakefu <github@syntax-fehler.de>2016-08-21 12:07:11 +0200
commit54ccd367175e33c0aab67e8ef46d4d73bcf8183c (patch)
tree8e07a58d4743009c8b56f3213110949bba952e33 /makefu/2configs/udpt.nix
parent9c1cd09a8171ffd85a77a7e89a020cabcab2b4f4 (diff)
m 2 udpt: init
Diffstat (limited to 'makefu/2configs/udpt.nix')
-rw-r--r--makefu/2configs/udpt.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/makefu/2configs/udpt.nix b/makefu/2configs/udpt.nix
new file mode 100644
index 000000000..6d55ffaf8
--- /dev/null
+++ b/makefu/2configs/udpt.nix
@@ -0,0 +1,31 @@
+{pkgs, ...}:
+
+let
+ cfgfile = pkgs.writeText "udpt-config" ''
+ [db]
+ driver=sqlite3
+ param=:memory:
+
+ [tracker]
+ is_dynamic=yes
+ port=6969
+ threads=5
+ allow_remotes=yes
+ allow_iana_ips=no
+ announce_interval=1800
+ cleanup_interval=120
+
+ [apiserver]
+ enable=yes
+
+ [logging]
+ filename=-
+ level=warning
+ '';
+in {
+ makefu.udpt = {
+ enable = true;
+ inherit cfgfile;
+ };
+
+}