Added spindownDisksList list to provide the HDD spindown capable list. Tried to fix mkPodmanService error.
This commit is contained in:
@@ -225,6 +225,12 @@ in
|
|||||||
example = [ "/dev/disk/by-id/nvme_SAMSUNG_MZVPYEHCO_159Ejz224G0000" "/dev/disk/by-id/ata-San_Disk_159Ejz224G" ];
|
example = [ "/dev/disk/by-id/nvme_SAMSUNG_MZVPYEHCO_159Ejz224G0000" "/dev/disk/by-id/ata-San_Disk_159Ejz224G" ];
|
||||||
description = "List of by-id path of devices for boot disks";
|
description = "List of by-id path of devices for boot disks";
|
||||||
};
|
};
|
||||||
|
spindownDisksList = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [];
|
||||||
|
example = [ "/dev/disk/by-id/WD_Blue_ATO431_159Ejz224G0000382b" "/dev/disk/by-id/Seagate_Barracuda_159Ejz224G" ];
|
||||||
|
description = "List of by-id path of devices to spindown when inactive to save power (HDD only)";
|
||||||
|
};
|
||||||
swapSize = mkOption {
|
swapSize = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "16G";
|
default = "16G";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
hardDrives = config.numbus.hardware.dataDisksList ++ config.numbus.hardware.parityDisksList;
|
hardDrives = config.numbus.hardware.spindownDisksList;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ with lib;
|
|||||||
generatedSecrets ? {},
|
generatedSecrets ? {},
|
||||||
importedSecrets ? {},
|
importedSecrets ? {},
|
||||||
envFile ? null,
|
envFile ? null,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|||||||
Reference in New Issue
Block a user