nixos/roles/torrent.nix
Ivan Bushchik 9de8497113
Call nixfmt for the first time
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-09-06 16:10:11 +03:00

13 lines
380 B
Nix

{ config, pkgs, lib, ... }:
let cfg = config.my.roles.torrent;
in {
options.my.roles.torrent.enable =
lib.mkEnableOption "Enable torrent support.";
# TODO: do something about systems without GUI (i don't use any at the moment)
config = lib.mkIf (cfg.enable) {
environment.systemPackages = with pkgs;
[ (transmission.override { enableGTK3 = true; }) ];
};
}