add localsend
This commit is contained in:
parent
cddb5c6659
commit
168dadf9e2
3 changed files with 22 additions and 0 deletions
|
@ -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;
|
||||||
|
|
|
@ -13,5 +13,6 @@
|
||||||
./obs
|
./obs
|
||||||
./nextcloud
|
./nextcloud
|
||||||
./rssguard
|
./rssguard
|
||||||
|
./localsend
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
20
modules/desktop/apps/localsend/default.nix
Normal file
20
modules/desktop/apps/localsend/default.nix
Normal 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 = [];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue