-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
826 additions
and
2,057 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8832,6 +8832,13 @@ | |
name = "Luna Perego"; | ||
keys = [ { fingerprint = "09E4 B981 9B93 5B0C 0B91 1274 0578 7332 9217 08FF"; } ]; | ||
}; | ||
hustlerone = { | ||
email = "[email protected]"; | ||
matrix = "@hustlerone:matrix.org"; | ||
github = "hustlerone"; | ||
name = "Hustler One"; | ||
githubId = 167621692; | ||
}; | ||
huyngo = { | ||
email = "[email protected]"; | ||
github = "Huy-Ngo"; | ||
|
@@ -11192,7 +11199,7 @@ | |
name = "kintrix"; | ||
}; | ||
kinzoku = { | ||
email = "[email protected]"; | ||
email = "[email protected]"; | ||
github = "kinzoku-dev"; | ||
githubId = 140647311; | ||
name = "Ayman Hamza"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
{ | ||
options.hardware.usbStorage.manageStartStop = lib.mkOption { | ||
options.hardware.usbStorage.manageShutdown = lib.mkOption { | ||
type = lib.types.bool; | ||
default = true; | ||
default = false; | ||
description = '' | ||
Enable this option to gracefully spin-down external storage during shutdown. | ||
If you suspect improper head parking after poweroff, install `smartmontools` and check | ||
for the `Power-Off_Retract_Count` field for an increment. | ||
''; | ||
}; | ||
|
||
config = lib.mkIf config.hardware.usbStorage.manageStartStop { | ||
config = lib.mkIf config.hardware.usbStorage.manageShutdown { | ||
services.udev.extraRules = '' | ||
ACTION=="add|change", SUBSYSTEM=="scsi_disk", DRIVERS=="usb-storage", ATTR{manage_system_start_stop}="1" | ||
ACTION=="add|change", SUBSYSTEM=="scsi_disk", DRIVERS=="usb-storage|uas", ATTR{manage_shutdown}="1" | ||
''; | ||
}; | ||
|
||
imports = [(lib.mkRenamedOptionModule [ "hardware" "usbStorage" "manageStartStop" ] [ "hardware" "usbStorage" "manageShutdown" ])]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.