2023-08-27 19:26:12 +03:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
2023-09-06 16:10:11 +03:00
|
|
|
let cfg = config.my.roles.torrent;
|
2023-08-27 19:26:12 +03:00
|
|
|
in {
|
2023-09-06 16:10:11 +03:00
|
|
|
options.my.roles.torrent.enable =
|
|
|
|
lib.mkEnableOption "Enable torrent support.";
|
2023-08-27 19:26:12 +03:00
|
|
|
# TODO: do something about systems without GUI (i don't use any at the moment)
|
|
|
|
config = lib.mkIf (cfg.enable) {
|
2023-09-06 16:10:11 +03:00
|
|
|
environment.systemPackages = with pkgs;
|
|
|
|
[ (transmission.override { enableGTK3 = true; }) ];
|
2023-08-27 19:26:12 +03:00
|
|
|
};
|
2023-09-06 16:10:11 +03:00
|
|
|
}
|