diff --git a/nix/nixos-modules/vmCommon.nix b/nix/nixos-modules/vmCommon.nix index def7f5d..ace614c 100644 --- a/nix/nixos-modules/vmCommon.nix +++ b/nix/nixos-modules/vmCommon.nix @@ -8,6 +8,8 @@ }: let cfg = config.x-banananetwork.vmCommon; + inherit (builtins) genList; + inherit (lib.trivial) flip; in { @@ -162,6 +164,14 @@ in 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 = {