m: expose torrent-secrets
This commit is contained in:
parent
6d8e758ecf
commit
2f19eccf24
@ -8,13 +8,13 @@ let
|
||||
peer-port = 51412;
|
||||
web-port = 8112;
|
||||
daemon-port = 58846;
|
||||
dl-dir = "/var/download";
|
||||
dl-dir = config.makefu.dl-dir;
|
||||
in {
|
||||
# prepare secrets
|
||||
krebs.build.source.torrent-secrets.file =
|
||||
if getEnv "dummy_secrets" == "true"
|
||||
then toString <stockholm/makefu/6tests/data/secrets>
|
||||
else "/home/makefu/secrets/torrent";
|
||||
else config.makefu.torrent-secrets ;
|
||||
|
||||
users.users = {
|
||||
download = {
|
||||
|
@ -8,9 +8,11 @@ _:
|
||||
./forward-journal.nix
|
||||
./opentracker.nix
|
||||
./ps3netsrv.nix
|
||||
./logging-config.nix
|
||||
./server-config.nix
|
||||
./snapraid.nix
|
||||
./taskserver.nix
|
||||
./torrent.nix
|
||||
./udpt.nix
|
||||
./umts.nix
|
||||
];
|
||||
|
13
makefu/3modules/torrent.nix
Normal file
13
makefu/3modules/torrent.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options.makefu.dl-dir = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Default download directory";
|
||||
default = "/media/cryptX/torrent";
|
||||
};
|
||||
options.makefu.torrent-secrets = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "/home/makefu/secrets/torrent";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user