mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 16:23:57 +01:00
meta: Merge virtualization with system
The check VMs still work as expected with this change.
This commit is contained in:
parent
51273df2c8
commit
2f30ce241b
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user