diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-03-27 18:52:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 18:52:43 +0100 |
commit | d6411ed8c6ecaed2c17840551326952c75704689 (patch) | |
tree | cd3af0e25149b50d479a7d19f5c3f954d250adc9 /nixos | |
parent | 4334eeb523a0bb2af673b98685188e0d3c4eaebc (diff) | |
parent | 99c0c32a49132c38cc67aa992408d82c3ceee3d1 (diff) | |
download | nixlib-d6411ed8c6ecaed2c17840551326952c75704689.tar nixlib-d6411ed8c6ecaed2c17840551326952c75704689.tar.gz nixlib-d6411ed8c6ecaed2c17840551326952c75704689.tar.bz2 nixlib-d6411ed8c6ecaed2c17840551326952c75704689.tar.lz nixlib-d6411ed8c6ecaed2c17840551326952c75704689.tar.xz nixlib-d6411ed8c6ecaed2c17840551326952c75704689.tar.zst nixlib-d6411ed8c6ecaed2c17840551326952c75704689.zip |
Merge pull request #297346 from codingCoffee/usbguard-fix
usbguard: fix policy enums
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/security/usbguard.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/security/usbguard.nix b/nixos/modules/services/security/usbguard.nix index f167fbb2eca8..ff54176e13d3 100644 --- a/nixos/modules/services/security/usbguard.nix +++ b/nixos/modules/services/security/usbguard.nix @@ -80,7 +80,7 @@ in }; implicitPolicyTarget = mkOption { - type = policy; + type = types.enum [ "allow" "block" "reject" ]; default = "block"; description = lib.mdDoc '' How to treat USB devices that don't match any rule in the policy. @@ -110,7 +110,7 @@ in }; insertedDevicePolicy = mkOption { - type = policy; + type = types.enum [ "block" "reject" "apply-policy" ]; default = "apply-policy"; description = lib.mdDoc '' How to treat USB devices that are already connected after the daemon |