1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-01 17:13:53 +00:00
ultima/modules/nixos/services/deluge/default.nix
2024-12-03 23:20:37 +09:00

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