nixos: added nicotine-plus module

This commit is contained in:
Aly Raffauf 2024-04-17 20:00:39 -04:00
parent 15eeacf399
commit f162dfe47c
2 changed files with 32 additions and 1 deletions

View file

@ -4,5 +4,5 @@
config, config,
... ...
}: { }: {
imports = [./flatpak ./steam ./podman ./virt-manager]; imports = [./flatpak ./nicotine-plus ./steam ./podman ./virt-manager];
} }

View file

@ -0,0 +1,31 @@
{
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;
}
];
};
};
}