mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-01 17:13:53 +00:00
18 lines
376 B
Nix
18 lines
376 B
Nix
{ pkgs, lib, config, userName, True, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.module.services.deluge;
|
|
in {
|
|
options = { module.services.deluge = { enable = mkEnableOption ""; }; };
|
|
|
|
config = mkIf cfg.enable {
|
|
services.deluge = True // {
|
|
package = pkgs.deluged;
|
|
dataDir = "/home/${userName}/Torrents";
|
|
web = True // { openFirewall = true; };
|
|
};
|
|
};
|
|
}
|
|
|