Skip to content

Commit

Permalink
refactor(virutalization): used mkIf condition to enable KVM virutaliz…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
Wittano committed Aug 3, 2024
1 parent 771fd10 commit ef8cf3f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hosts/pc/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ system, inputs, ... }:
{ lib, system, inputs, ... }:
with lib;
with lib.my;
{

imports = [ ./hardware.nix ];
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ef8cf3f

Please sign in to comment.