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

32 lines
581 B
Nix
Raw Normal View History

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