mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 18:24:08 +02:00
open mdns port in flake
This commit is contained in:
parent
0134a26ba3
commit
d2ee4300ab
1 changed files with 16 additions and 1 deletions
17
flake.nix
17
flake.nix
|
|
@ -70,10 +70,25 @@
|
||||||
example = true;
|
example = true;
|
||||||
description = "enable docker integration";
|
description = "enable docker integration";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
openPort = mkOption rec {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
description = "open port";
|
||||||
|
};
|
||||||
|
|
||||||
|
openMDNSPort = mkOption rec {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
description = "open mdns port";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
networking.firewall.allowedTCPPorts = [cfg.port];
|
networking.firewall.allowedTCPPorts = lib.optional cfg.openPort cfg.port;
|
||||||
|
networking.firewall.allowedUDPPorts = lib.optional cfg.openMDNSPort 5353;
|
||||||
|
|
||||||
users.groups.palantir = {};
|
users.groups.palantir = {};
|
||||||
users.groups.powermonitoring = {};
|
users.groups.powermonitoring = {};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue