2024-07-05 11:53:58 +04:00
|
|
|
{ outputs, options, config, lib, pkgs, ...}:
|
|
|
|
let
|
|
|
|
cfg = config.modules.desktop.apps.localsend;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.modules.desktop.apps.localsend = {
|
2024-08-01 16:03:15 +04:00
|
|
|
enable = lib.mkEnableOption false;
|
2024-07-05 11:53:58 +04:00
|
|
|
};
|
|
|
|
|
2024-08-01 16:03:15 +04:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-07-05 11:53:58 +04:00
|
|
|
users.users.sako.packages = with pkgs; [
|
|
|
|
localsend
|
|
|
|
];
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 53317 ];
|
|
|
|
allowedUDPPorts = [];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|