nixcfg/nixosModules/apps/nicotine-plus/default.nix

32 lines
561 B
Nix
Raw Normal View History

2024-04-17 20:00:39 -04:00
{
pkgs,
lib,
config,
...
}: {
options = {
apps.nicotine-plus.enable =
lib.mkEnableOption "Enable Nicotine+ soulseek client.";
};
config = lib.mkIf config.apps.nicotine-plus.enable {
environment.systemPackages = [ pkgs.nicotine-plus ];
networking = {
firewall.allowedTCPPortRanges = [
# Soulseek
{
from = 2234;
to = 2239;
}
];
firewall.allowedUDPPortRanges = [
# Soulseek
{
from = 2234;
to = 2239;
}
];
};
};
}