2024-04-17 20:00:39 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
options = {
|
2024-04-17 22:39:00 -04:00
|
|
|
alyraffauf.apps.nicotine-plus.enable =
|
2024-04-17 20:00:39 -04:00
|
|
|
lib.mkEnableOption "Enable Nicotine+ soulseek client.";
|
|
|
|
};
|
|
|
|
|
2024-04-17 22:39:00 -04:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|