readd usb-hdd module for home-hypervisor
This commit is contained in:
parent
77252fc9c4
commit
5ef6e13dd5
@ -1,8 +1,8 @@
|
||||
{ ... }: {
|
||||
{ pkgs, ... }: {
|
||||
boot.initrd = rec {
|
||||
luks.devices = {
|
||||
"crypt-nas" = {
|
||||
device = "/dev/disk/by-id/usb-JMicron_Tech_A311737E-0:0";
|
||||
device = "/dev/disk/by-id/ata-ST4000NM0035-1V4107_ZC1A7CWN";
|
||||
keyFile = "/nas_keyfile0.bin";
|
||||
};
|
||||
};
|
||||
@ -20,4 +20,8 @@
|
||||
};
|
||||
|
||||
boot.zfs.extraPools = [ "nas-pool" ];
|
||||
|
||||
system.activationScripts.disable-hdd-spindown.text = ''
|
||||
${pkgs.hdparm}/bin/hdparm -s 0 /dev/disk/by-id/ata-ST4000NM0035-1V4107_ZC1A7CWN
|
||||
'';
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user