nixos/modules/desktop/apps/localsend/default.nix
2024-08-01 16:03:15 +04:00

19 lines
397 B
Nix

{ outputs, options, config, lib, pkgs, ...}:
let
cfg = config.modules.desktop.apps.localsend;
in
{
options.modules.desktop.apps.localsend = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
localsend
];
networking.firewall = {
allowedTCPPorts = [ 53317 ];
allowedUDPPorts = [];
};
};
}