m 3 rtorrent -> k 3 rtorrent
This commit is contained in:
parent
938e21973a
commit
11797ea564
@ -33,6 +33,7 @@ let
|
||||
./realwallpaper.nix
|
||||
./retiolum-bootstrap.nix
|
||||
./retiolum.nix
|
||||
./rtorrent.nix
|
||||
./secret.nix
|
||||
./setuid.nix
|
||||
./tinc_graphs.nix
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
with config.krebs.lib;
|
||||
let
|
||||
cfg = config.makefu.rtorrent;
|
||||
webcfg = config.makefu.rtorrent.web;
|
||||
rucfg = config.makefu.rtorrent.rutorrent;
|
||||
cfg = config.krebs.rtorrent;
|
||||
webcfg = config.krebs.rtorrent.web;
|
||||
rucfg = config.krebs.rtorrent.rutorrent;
|
||||
|
||||
nginx-user = config.services.nginx.user;
|
||||
nginx-group = config.services.nginx.group;
|
||||
@ -55,7 +55,7 @@ let
|
||||
'';
|
||||
|
||||
out = {
|
||||
options.makefu.rtorrent = api;
|
||||
options.krebs.rtorrent = api;
|
||||
# This only works because none of the attrsets returns the same key
|
||||
config = with lib; mkIf cfg.enable (lib.mkMerge [
|
||||
(lib.mkIf webcfg.enable rpcweb-imp)
|
||||
@ -184,8 +184,8 @@ let
|
||||
see ${cfg.package}/share/doc/rtorrent/rtorrent.rc
|
||||
'';
|
||||
example = literalExample ''
|
||||
log.execute = ${config.makefu.rtorrent.workDir}/execute.log
|
||||
log.xmlrpc = ${config.makefu.rtorrent.workDir}/xmlrpc.log
|
||||
log.execute = ${cfg.workDir}/execute.log
|
||||
log.xmlrpc = ${cfg.workDir}/xmlrpc.log
|
||||
'';
|
||||
default = "";
|
||||
};
|
@ -49,7 +49,7 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
makefu.rtorrent = {
|
||||
krebs.rtorrent = {
|
||||
enable = true;
|
||||
web = {
|
||||
enable = true;
|
||||
|
@ -8,7 +8,6 @@ _:
|
||||
./forward-journal.nix
|
||||
./opentracker.nix
|
||||
./ps3netsrv.nix
|
||||
./rtorrent.nix
|
||||
./snapraid.nix
|
||||
./taskserver.nix
|
||||
./udpt.nix
|
||||
|
@ -18,7 +18,6 @@ in
|
||||
mycube-flask = callPackage ./mycube-flask {};
|
||||
nodemcu-uploader = callPackage ./nodemcu-uploader {};
|
||||
ps3netsrv = callPackage ./ps3netsrv {};
|
||||
rutorrent = callPackage ./rutorrent {};
|
||||
tw-upload-plugin = callPackage ./tw-upload-plugin {};
|
||||
skytraq-logger = callPackage ./skytraq-logger {};
|
||||
taskserver = callPackage ./taskserver {};
|
||||
|
Loading…
Reference in New Issue
Block a user