materusPC: rename windows virtual machine

This commit is contained in:
2024-08-05 00:27:55 +02:00
parent b9ce475a3e
commit 87bdc15245
6 changed files with 136 additions and 129 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{
imports = [
./win10
./win-vfio
];
materus.materusArg.materusPC = {
allCores = "0-31";
@@ -154,12 +154,12 @@ in
virtualisation.libvirtd.hooks.qemu = {
"win10" = pkgs.writeShellScript "win10.sh" ''
"windows-vfio" = pkgs.writeShellScript "windows.sh" ''
VIRSH_GPU_VIDEO="0000:03:00.0"
VIRSH_GPU_AUDIO="0000:03:00.1"
VIRSH_USB1="0000:10:00.0"
if [ ''$1 = "win10" ] || [ ''$1 = "win11" ]; then
if [ ''$1 = "windows-vfio" ]; then
if [ ''$2 = "prepare" ] && [ ''$3 = "begin" ]; then
${startHook}
fi