m 2 udpt: init

This commit is contained in:
makefu 2016-08-21 12:07:05 +02:00
parent 9c1cd09a81
commit 54ccd36717
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

31
makefu/2configs/udpt.nix Normal file
View File

@ -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;
};
}