add localsend

This commit is contained in:
Sakooooo 2024-07-05 11:53:58 +04:00
parent cddb5c6659
commit 168dadf9e2
Signed by: sako
GPG key ID: FE52FD65B76E4751
3 changed files with 22 additions and 0 deletions

View file

@ -29,6 +29,7 @@
rssguard.enable = true; rssguard.enable = true;
obs.enable = true; obs.enable = true;
pass.enable = true; pass.enable = true;
localsend.enable = true;
}; };
browsers = { browsers = {
firefox.enable = true; firefox.enable = true;

View file

@ -13,5 +13,6 @@
./obs ./obs
./nextcloud ./nextcloud
./rssguard ./rssguard
./localsend
]; ];
} }

View file

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