We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66d813d + 577e162 commit f3a1d21Copy full SHA for f3a1d21
nixos/modules/services/home-automation/zigbee2mqtt.nix
@@ -76,9 +76,7 @@ in
76
77
# Hardening
78
CapabilityBoundingSet = "";
79
- DeviceAllow = [
80
- config.services.zigbee2mqtt.settings.serial.port
81
- ];
+ DeviceAllow = lib.optionals (lib.hasPrefix "/" cfg.settings.serial.port) [ cfg.settings.serial.port ];
82
DevicePolicy = "closed";
83
LockPersonality = true;
84
MemoryDenyWriteExecute = false;
0 commit comments