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

21 lines
408 B
Nix
Raw Normal View History

2023-07-19 01:59:19 +04:00
{ outputs, options, config, lib, pkgs, ...}:
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 = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-07-19 01:59:19 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2023-07-19 01:59:19 +04:00
#TODO(sako):: figure out service
users.users.sako.packages = with pkgs; [
2024-08-09 17:55:44 +04:00
transmission_4-gtk
2023-07-19 01:59:19 +04:00
];
};
}