diff --git a/modules/system.nix b/modules/system.nix index c9e77491..aaf6f763 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -1,7 +1,7 @@ { nix-config, pkgs, lib, config, ... }: let - inherit (lib) mkOption mkEnableOption mkIf; + inherit (lib) mkOption mkEnableOption; inherit (lib.types) str listOf; inherit (pkgs.nixVersions) nix_2_19; inherit (cfg) username iHaveLotsOfRam; @@ -120,5 +120,27 @@ in homeDirectory = "/home/${username}"; }; }; + + virtualisation.vmVariant = { + virtualisation = { + memorySize = 4096; + cores = 4; + + qemu.options = [ + "-device virtio-vga-gl" + "-display sdl,gl=on,show-cursor=off" + "-audio pa,model=hda" + ]; + }; + + environment.sessionVariables = { + WLR_NO_HARDWARE_CURSORS = "1"; + }; + + services.interception-tools.enable = lib.mkForce false; + networking.resolvconf.enable = lib.mkForce true; + + boot.enableContainers = false; + }; }; } diff --git a/modules/virtualization.nix b/modules/virtualization.nix deleted file mode 100644 index 43e9c56f..00000000 --- a/modules/virtualization.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ lib, ... }: - -{ - virtualisation.vmVariant = { - virtualisation = { - memorySize = 4096; - cores = 4; - }; - - virtualisation.qemu.options = [ - "-device virtio-vga-gl" - "-display sdl,gl=on,show-cursor=off" - "-audio pa,model=hda" - ]; - - environment.sessionVariables = { - WLR_NO_HARDWARE_CURSORS = "1"; - }; - - services.interception-tools.enable = lib.mkForce false; - networking.resolvconf.enable = lib.mkForce true; - - boot.enableContainers = false; - }; -}