mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-09 08:43:52 +00:00
30 lines
399 B
Nix
30 lines
399 B
Nix
{
|
|
x,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
with x;
|
|
let
|
|
cfg = config.module.services.deluge;
|
|
in
|
|
{
|
|
options = {
|
|
module.services.deluge = {
|
|
enable = mkBool;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.deluge = True // {
|
|
package = pkgs.deluged;
|
|
dataDir = "/home/${userName}/Torrents";
|
|
web = True // {
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
};
|
|
}
|