mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:13:55 -05:00
nixos: added nicotine-plus module
This commit is contained in:
parent
15eeacf399
commit
f162dfe47c
|
@ -4,5 +4,5 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [./flatpak ./steam ./podman ./virt-manager];
|
||||
imports = [./flatpak ./nicotine-plus ./steam ./podman ./virt-manager];
|
||||
}
|
||||
|
|
31
nixosModules/apps/nicotine-plus/default.nix
Normal file
31
nixosModules/apps/nicotine-plus/default.nix
Normal 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;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue