mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
Merge pull request #297346 from codingCoffee/usbguard-fix
usbguard: fix policy enums
This commit is contained in:
commit
d6411ed8c6
|
@ -80,7 +80,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
implicitPolicyTarget = mkOption {
|
implicitPolicyTarget = mkOption {
|
||||||
type = policy;
|
type = types.enum [ "allow" "block" "reject" ];
|
||||||
default = "block";
|
default = "block";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
How to treat USB devices that don't match any rule in the policy.
|
How to treat USB devices that don't match any rule in the policy.
|
||||||
|
@ -110,7 +110,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
insertedDevicePolicy = mkOption {
|
insertedDevicePolicy = mkOption {
|
||||||
type = policy;
|
type = types.enum [ "block" "reject" "apply-policy" ];
|
||||||
default = "apply-policy";
|
default = "apply-policy";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
How to treat USB devices that are already connected after the daemon
|
How to treat USB devices that are already connected after the daemon
|
||||||
|
|
Loading…
Reference in a new issue