nixos/modules/desktop/apps/transmission/default.nix

22 lines
408 B
Nix
Raw Normal View History

2023-07-19 01:59:19 +04:00
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
2023-07-19 02:00:01 +04:00
cfg = config.modules.desktop.apps.transmission;
2023-07-19 01:59:19 +04:00
in
{
2023-07-28 02:14:43 +04:00
imports = [
2023-07-30 03:35:51 +04:00
./remote-tui.nix
2023-07-30 03:44:27 +04:00
./daemon.nix
2023-07-28 02:14:43 +04:00
];
2023-07-19 02:00:01 +04:00
options.modules.desktop.apps.transmission = {
2023-07-19 01:59:19 +04:00
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
#TODO(sako):: figure out service
users.users.sako.packages = with pkgs; [
2023-07-30 03:44:27 +04:00
transmission-gtk
2023-07-19 01:59:19 +04:00
];
};
}