diff --git a/hosts/pc/configuration.nix b/hosts/pc/configuration.nix index 5d534f81..f72f0681 100644 --- a/hosts/pc/configuration.nix +++ b/hosts/pc/configuration.nix @@ -1,4 +1,6 @@ -{ system, inputs, ... }: +{ lib, system, inputs, ... }: +with lib; +with lib.my; { imports = [ ./hardware.nix ]; @@ -38,9 +40,9 @@ hardware = rec { grub.enableMultiBoot = true; sound.enable = true; - virtualization = { - enable = !grub.enableMultiBoot; - enableWindowsVM = !grub.enableMultiBoot; + virtualization = mkIf (!grub.enableMultiBoot) { + enable = true; + enableWindowsVM = true; }; grub = { enable = true;