2023-07-30 03:44:27 +04:00
|
|
|
{ outputs, options, config, lib, pkgs, ...}:
|
|
|
|
let
|
|
|
|
cfg = config.modules.desktop.apps.transmission;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.modules.desktop.apps.transmission = {
|
2024-08-01 16:24:09 +04:00
|
|
|
daemon = lib.mkEnableOption false;
|
2023-07-30 03:44:27 +04:00
|
|
|
};
|
|
|
|
|
2024-08-01 16:24:09 +04:00
|
|
|
config = lib.mkIf cfg.daemon {
|
2023-07-30 03:44:27 +04:00
|
|
|
#TODO(sako):: figure out service
|
|
|
|
users.users.sako.packages = with pkgs; [
|
|
|
|
transmission
|
|
|
|
];
|
|
|
|
|
|
|
|
home-manager.users.sako = { pkgs, ...}: {
|
|
|
|
xdg.configFile = {
|
|
|
|
transmission-daemon = {
|
|
|
|
source = ../../../../config/transmission-daemon;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|