mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
znc: open firewall with configured port
The configuration doesn't currently open the configured port, which is
less convenient than opening it.
(cherry picked from commit 83d89e9b22)
This commit is contained in:
committed by
Franz Pletz
parent
656f90717c
commit
d2b00a6a85
@@ -350,6 +350,8 @@ in
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ cfg.port ];
|
||||
|
||||
systemd.services.znc = {
|
||||
description = "ZNC Server";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
Reference in New Issue
Block a user