diff options
author | Malte Brandy <malte.brandy@maralorn.de> | 2020-10-14 01:46:17 +0200 |
---|---|---|
committer | Malte Brandy <malte.brandy@maralorn.de> | 2020-10-14 01:46:17 +0200 |
commit | cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a (patch) | |
tree | a63c3fb3954ecfd407aa649f777f102a262a4ddb /nixos/modules/services/security/usbguard.nix | |
parent | 74d875206a825007e27abaa7c590f4c1db35ad31 (diff) | |
download | nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.tar nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.tar.gz nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.tar.bz2 nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.tar.lz nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.tar.xz nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.tar.zst nixpkgs-cebf9198f3fe80fa38a8c57eb3b02ac4c1df3e8a.zip |
treewide: De-inline uses of lib.boolToString
This commit should not change eval results
Diffstat (limited to 'nixos/modules/services/security/usbguard.nix')
-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 16a90da5231..71fd71a2cab 100644 --- a/nixos/modules/services/security/usbguard.nix +++ b/nixos/modules/services/security/usbguard.nix @@ -19,13 +19,13 @@ let PresentDevicePolicy=${cfg.presentDevicePolicy} PresentControllerPolicy=${cfg.presentControllerPolicy} InsertedDevicePolicy=${cfg.insertedDevicePolicy} - RestoreControllerDeviceState=${if cfg.restoreControllerDeviceState then "true" else "false"} + RestoreControllerDeviceState=${boolToString cfg.restoreControllerDeviceState} # this does not seem useful for endusers to change DeviceManagerBackend=uevent IPCAllowedUsers=${concatStringsSep " " cfg.IPCAllowedUsers} IPCAllowedGroups=${concatStringsSep " " cfg.IPCAllowedGroups} IPCAccessControlFiles=/var/lib/usbguard/IPCAccessControl.d/ - DeviceRulesWithPort=${if cfg.deviceRulesWithPort then "true" else "false"} + DeviceRulesWithPort=${boolToString cfg.deviceRulesWithPort} # HACK: that way audit logs still land in the journal AuditFilePath=/dev/null ''; |