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

32 lines
583 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-17 20:00:39 -04:00
environment.systemPackages = [ pkgs.nicotine-plus ];
networking = {
firewall.allowedTCPPortRanges = [
# Soulseek
{
from = 2234;
to = 2239;
}
];
firewall.allowedUDPPortRanges = [
# Soulseek
{
from = 2234;
to = 2239;
}
];
};
};
}