nixos/hardware.usb-storage: remove with lib;
This commit is contained in:
parent
1f149110c4
commit
09c8cfddd2
@ -1,9 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.hardware.usbStorage.manageStartStop = mkOption {
|
||||
type = types.bool;
|
||||
options.hardware.usbStorage.manageStartStop = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = ''
|
||||
Enable this option to gracefully spin-down external storage during shutdown.
|
||||
@ -12,7 +10,7 @@ with lib;
|
||||
'';
|
||||
};
|
||||
|
||||
config = mkIf config.hardware.usbStorage.manageStartStop {
|
||||
config = lib.mkIf config.hardware.usbStorage.manageStartStop {
|
||||
services.udev.extraRules = ''
|
||||
ACTION=="add|change", SUBSYSTEM=="scsi_disk", DRIVERS=="usb-storage", ATTR{manage_system_start_stop}="1"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user