modules/vmCommon: configure smartd to ignore QEMU devices

main
Felix Stupp 1 year ago
parent d3d740e5a7
commit df1a8ca844
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -8,6 +8,8 @@
}: }:
let let
cfg = config.x-banananetwork.vmCommon; cfg = config.x-banananetwork.vmCommon;
inherit (builtins) genList;
inherit (lib.trivial) flip;
in in
{ {
@ -162,6 +164,14 @@ in
openFirewall = true; openFirewall = true;
}; };
smartd = {
# ignore QEMU drives
devices = flip genList 9 (n: {
device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi${toString n}";
options = "-d ignore";
});
};
}; };
system.autoUpgrade = { system.autoUpgrade = {

Loading…
Cancel
Save