Merge pull request #265030 from bb2020/usbstor

nixos/usbStorage: update device flag
This commit is contained in:
Will Fancher 2024-01-08 17:03:25 -05:00 committed by GitHub
commit 9127f63b94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ with lib;
config = mkIf config.hardware.usbStorage.manageStartStop { config = mkIf config.hardware.usbStorage.manageStartStop {
services.udev.extraRules = '' services.udev.extraRules = ''
ACTION=="add|change", SUBSYSTEM=="scsi_disk", DRIVERS=="usb-storage", ATTR{manage_start_stop}="1" ACTION=="add|change", SUBSYSTEM=="scsi_disk", DRIVERS=="usb-storage", ATTR{manage_system_start_stop}="1"
''; '';
}; };
} }