summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-01-11 12:40:33 -0500
committerAndrew Opalach <andrew@akon.city> 2025-01-11 12:40:33 -0500
commit2d35d8e272b4d5725c686be5d2b4436a55fe8141 (patch)
tree2a7ba5dc3954e8eb8c2ef9fe7d9d9f2c92c969b8
parenta6bd778dc3d6652de019f3b96a0c0039628f5339 (diff)
downloaddotfiles-2d35d8e272b4d5725c686be5d2b4436a55fe8141.tar.gz
dotfiles-2d35d8e272b4d5725c686be5d2b4436a55fe8141.tar.bz2
dotfiles-2d35d8e272b4d5725c686be5d2b4436a55fe8141.zip
Update libvirt configs, laptop theme
-rw-r--r--files/nvim/init.vim2
-rw-r--r--flake.lock56
-rw-r--r--hosts/denpa/cgit/custom.css4
-rw-r--r--hosts/iroha/grub_config77
-rw-r--r--hosts/iroha/libvirt/hooks/arcade.conf7
-rw-r--r--hosts/iroha/libvirt/hooks/cpuset.conf4
-rwxr-xr-xhosts/iroha/libvirt/hooks/cpuset_release_common.sh1
l---------hosts/iroha/libvirt/hooks/qemu.d/arcade/prepare/begin/cpuset_prepare_common.sh1
-rwxr-xr-xhosts/iroha/libvirt/hooks/qemu.d/arcade/prepare/begin/port_forward.sh14
l---------hosts/iroha/libvirt/hooks/qemu.d/arcade/release/end/cpuset_release_common.sh1
-rwxr-xr-xhosts/iroha/libvirt/hooks/qemu.d/arcade/release/end/port_close.sh14
-rwxr-xr-xhosts/iroha/libvirt/hooks/qemu.d/corpa/prepare/begin/bind_vfio.sh16
-rwxr-xr-xhosts/iroha/libvirt/hooks/qemu.d/corpa/release/end/unbind_vfio.sh16
-rw-r--r--hosts/iroha/libvirt/qemu/arcade.xml90
-rw-r--r--hosts/iroha/libvirt/qemu/corpa-nogpu.xml237
-rw-r--r--hosts/iroha/libvirt/qemu/corpa.xml119
-rw-r--r--hosts/iroha/libvirt/qemu/soy.xml7
-rw-r--r--hosts/iroha/libvirt/qemu/xp.xml11
-rw-r--r--hosts/moyo/grub_config77
-rw-r--r--hosts/moyo/libvirt/qemu/denpa.xml4
-rw-r--r--hosts/sofue/configuration.nix5
-rw-r--r--hosts/sofue/programs.nix3
-rw-r--r--hosts/yashinoki/configuration.nix23
-rw-r--r--nix/gaming.nix2
-rw-r--r--nix/programs/sway.nix2
-rw-r--r--nix/scripts.nix1
-rw-r--r--nix/user.nix4
-rw-r--r--nix/virtualisation.nix2
-rwxr-xr-xscripts/looking-glass2
-rw-r--r--themes/year_of_snake/snake.nix23
-rw-r--r--themes/year_of_snake/splash.krabin0 -> 1441596 bytes
-rw-r--r--themes/year_of_snake/splash.pngbin0 -> 501920 bytes
-rw-r--r--themes/year_of_snake/wallpaper.krabin0 -> 7984814 bytes
-rw-r--r--themes/year_of_snake/wallpaper.pngbin0 -> 2346081 bytes
34 files changed, 621 insertions, 204 deletions
diff --git a/files/nvim/init.vim b/files/nvim/init.vim
index aa6cd7d..6bbb558 100644
--- a/files/nvim/init.vim
+++ b/files/nvim/init.vim
@@ -244,6 +244,8 @@ vim.keymap.set('n', 'K', '<nop>', { silent = true })
vim.keymap.set('n', 'L', '<nop>', { silent = true })
-- Normal mode tab no-op.
vim.keymap.set('n', '<Tab>', '<nop>', { silent = true })
+-- ctrl + c no-op.
+vim.keymap.set('n', '<C-c>', '<nop>', { silent = true })
-- Disable F1 for help.
vim.keymap.set('n', '<F1>', '<nop>', { silent = true })
-- Disable q: for histroy.
diff --git a/flake.lock b/flake.lock
index 45b6c4d..8b088f1 100644
--- a/flake.lock
+++ b/flake.lock
@@ -35,11 +35,11 @@
]
},
"locked": {
- "lastModified": 1736112920,
- "narHash": "sha256-MME0HoMWJtk67vW4lop1eTK4//EXJB/hefo6+JbdHZs=",
+ "lastModified": 1736524793,
+ "narHash": "sha256-UEbNwGorRiNLtzhshxe/2J2BmwGI1cDCDhSYtY8qREU=",
"owner": "chaotic-cx",
"repo": "nyx",
- "rev": "aa7b9944e164d9284939b78d05b8cf8df319a5d5",
+ "rev": "38844e9b3e17948a66b0dea0ce0bcc0355d6d876",
"type": "github"
},
"original": {
@@ -198,11 +198,11 @@
]
},
"locked": {
- "lastModified": 1736066484,
- "narHash": "sha256-uTstP36WaFrw+TEHb8nLF14hFPzQBOhmIxzioHCDaL8=",
+ "lastModified": 1736421950,
+ "narHash": "sha256-RyrX0WFXxFrYvzHNLTIyuk3NcNl3UBykuYru/P0zW5E=",
"owner": "nix-community",
"repo": "home-manager",
- "rev": "5ad12b6ea06b84e48f6b677957c74f32d47bdee0",
+ "rev": "d4aebb947a301b8da8654a804979a738c5c5da50",
"type": "github"
},
"original": {
@@ -218,11 +218,11 @@
]
},
"locked": {
- "lastModified": 1736204492,
- "narHash": "sha256-CoBPRgkUex9Iz6qGSzi/BFVUQjndB0PmME2B6eEyeCs=",
+ "lastModified": 1736508663,
+ "narHash": "sha256-ZOaGwa+WnB7Zn3YXimqjmIugAnHePdXCmNu+AHkq808=",
"owner": "nix-community",
"repo": "home-manager",
- "rev": "20665c6efa83d71020c8730f26706258ba5c6b2a",
+ "rev": "2532b500c3ed2b8940e831039dcec5a5ea093afc",
"type": "github"
},
"original": {
@@ -240,11 +240,11 @@
]
},
"locked": {
- "lastModified": 1735931035,
- "narHash": "sha256-f3WRxasPYVKzrvAlLq+/3FRHQVfxVf5xxf0WWwnO99k=",
+ "lastModified": 1736409493,
+ "narHash": "sha256-XezBEaGENmXgndx2gsVxQ0JoHUeQs9OSUZvVx/GDqyQ=",
"owner": "Jovian-Experiments",
"repo": "Jovian-NixOS",
- "rev": "7e530766a5fd9b7577296fedd655f3255f7495d8",
+ "rev": "9a958cc0aa5241ea3badf44a063a4b0389dc0110",
"type": "github"
},
"original": {
@@ -397,11 +397,11 @@
},
"nixos-hardware_2": {
"locked": {
- "lastModified": 1736237814,
- "narHash": "sha256-uTdscVaKjnRnBIMuu/oWwdiGhYd/JOQ4YZGHeCoroqs=",
+ "lastModified": 1736441705,
+ "narHash": "sha256-OL7leZ6KBhcDF3nEKe4aZVfIm6xQpb1Kb+mxySIP93o=",
"owner": "NixOS",
"repo": "nixos-hardware",
- "rev": "ca30f8501ab452ca687a7fdcb2d43e1fb1732317",
+ "rev": "8870dcaff63dfc6647fb10648b827e9d40b0a337",
"type": "github"
},
"original": {
@@ -473,11 +473,11 @@
]
},
"locked": {
- "lastModified": 1736274403,
- "narHash": "sha256-gOd1twminF/G/kX3zRmxXL39+0bF6BaVapOdvf8K8oY=",
+ "lastModified": 1736512664,
+ "narHash": "sha256-/vw0//f1FAwpy6eY3qLGohgohuLWYBDw+iy34wL6M/M=",
"owner": "nix-community",
"repo": "nixpkgs-wayland",
- "rev": "8411b42979359adfbcc78b2a3daadfb1c661817e",
+ "rev": "ce4056d912438ae120814431657c0d8ef88b0b2f",
"type": "github"
},
"original": {
@@ -488,11 +488,11 @@
},
"nixpkgs_2": {
"locked": {
- "lastModified": 1736012469,
- "narHash": "sha256-/qlNWm/IEVVH7GfgAIyP6EsVZI6zjAx1cV5zNyrs+rI=",
+ "lastModified": 1736344531,
+ "narHash": "sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc+c2c=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "8f3e1f807051e32d8c95cd12b9b421623850a34d",
+ "rev": "bffc22eb12172e6db3c5dde9e3e5628f8e3e7912",
"type": "github"
},
"original": {
@@ -527,11 +527,11 @@
"treefmt-nix": "treefmt-nix_2"
},
"locked": {
- "lastModified": 1736268958,
- "narHash": "sha256-O3cfbKgDb8A5VsUN0fPVpNf2EEFO5itnbkTYP+Vsuto=",
+ "lastModified": 1736538354,
+ "narHash": "sha256-qPgUE5K/qcgzpQRHzruAgwT/7SCSAOUOyK1qyofe0TY=",
"owner": "nix-community",
"repo": "NUR",
- "rev": "706045eb80f347d5418e81c5aa80d6c410394991",
+ "rev": "80b24eed6e716dc5a31a360f8465636a7a2a990f",
"type": "github"
},
"original": {
@@ -650,11 +650,11 @@
},
"locked": {
"dir": "packaging/nix",
- "lastModified": 1736271378,
- "narHash": "sha256-j1TqXcffjqp/xmWvY9j4Johj1AdKiGXv94pNZHXEz6Y=",
+ "lastModified": 1736534482,
+ "narHash": "sha256-aHDxVKA4GgohIPCDUX9zMF4UnLQR7U6Dj9mOmhZYSoc=",
"ref": "refs/heads/main",
- "rev": "f423d6683cac7037333fbf38db8d0cc94c984fda",
- "revCount": 880,
+ "rev": "e9cb4d764013d4c8c3d1166f59581da8f56a3d83",
+ "revCount": 896,
"submodules": true,
"type": "git",
"url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix"
diff --git a/hosts/denpa/cgit/custom.css b/hosts/denpa/cgit/custom.css
index 29a2080..2bcabe9 100644
--- a/hosts/denpa/cgit/custom.css
+++ b/hosts/denpa/cgit/custom.css
@@ -82,6 +82,10 @@ a:hover {
color: rgb(var(--highlight1)) !important;
}
+ul {
+ padding-left: 2rem;
+}
+
code {
background-color: var(--color1);
}
diff --git a/hosts/iroha/grub_config b/hosts/iroha/grub_config
new file mode 100644
index 0000000..dced1d3
--- /dev/null
+++ b/hosts/iroha/grub_config
@@ -0,0 +1,77 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+#
+# To populate all changes in this file you need to regenerate your
+# grub configuration file afterwards:
+# 'grub-mkconfig -o /boot/grub/grub.cfg'
+#
+# See the grub info page for documentation on possible variables and
+# their associated values.
+
+GRUB_DISTRIBUTOR="Gentoo"
+
+# Default menu entry
+#GRUB_DEFAULT=0
+
+# Boot the default entry this many seconds after the menu is displayed
+#GRUB_TIMEOUT=5
+#GRUB_TIMEOUT_STYLE=menu
+
+# Append parameters to the linux kernel command line
+GRUB_CMDLINE_LINUX="quiet text rd.lvm.vg=iroha-vg0"
+#
+# Examples:
+#
+# Boot with network interface renaming disabled
+# GRUB_CMDLINE_LINUX="net.ifnames=0"
+#
+# Boot with systemd instead of sysvinit (openrc)
+# GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"
+
+# Append parameters to the linux kernel command line for non-recovery entries
+# default_hugepagesz=1G hugepagesz=1G hugepages=48
+GRUB_CMDLINE_LINUX_DEFAULT="nowatchdog nmi_watchdog=0 amd_pstate=guided amd_iommu=on iommu=pt kvm.ignore_msrs=1 kvm.report_ignored_msrs=0 pcie_no_flr=1022:149c acpi_enforce_resources=lax amdgpu.ppfeaturemask=0xffffffff i915.force_probe=!56a0 xe.force_probe=56a0 psi=1 mitigations=off"
+
+# Uncomment to disable graphical terminal (grub-pc only)
+#GRUB_TERMINAL=console
+
+# The resolution used on graphical terminal.
+# Note that you can use only modes which your graphic card supports via VBE.
+# You can see them in real GRUB with the command `vbeinfo'.
+#GRUB_GFXMODE=640x480
+
+# Set to 'text' to force the Linux kernel to boot in normal text
+# mode, 'keep' to preserve the graphics mode set using
+# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
+# graphics mode, or a sequence of these separated by commas or
+# semicolons to try several modes in sequence.
+#GRUB_GFXPAYLOAD_LINUX=
+
+# Path to theme spec txt file.
+# The starfield is by default provided with use truetype.
+# NOTE: when enabling custom theme, ensure you have required font/etc.
+#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"
+
+# Background image used on graphical terminal.
+# Can be in various bitmap formats.
+#GRUB_BACKGROUND="/boot/grub/mybackground.png"
+
+# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
+#GRUB_DISABLE_LINUX_UUID=true
+
+# Comment if you don't want GRUB to pass "root=PARTUUID=xxx" parameter to kernel
+GRUB_DISABLE_LINUX_PARTUUID=false
+
+# Uncomment to disable generation of recovery mode menu entries
+#GRUB_DISABLE_RECOVERY=true
+
+# Uncomment to disable generation of the submenu and put all choices on
+# the top-level menu.
+# Besides the visual affect of no sub menu, this makes navigation of the
+# menu easier for a user who can't see the screen.
+#GRUB_DISABLE_SUBMENU=y
+
+# Uncomment to play a tone when the main menu is displayed.
+# This is useful, for example, to allow users who can't see the screen
+# to know when they can make a choice on the menu.
+#GRUB_INIT_TUNE="60 800 1"
diff --git a/hosts/iroha/libvirt/hooks/arcade.conf b/hosts/iroha/libvirt/hooks/arcade.conf
index 4282629..acbc430 100644
--- a/hosts/iroha/libvirt/hooks/arcade.conf
+++ b/hosts/iroha/libvirt/hooks/arcade.conf
@@ -1,4 +1,3 @@
-VIRSH_GPU_VIDEO=pci_0000_0f_00_0
-VIRSH_GPU_AUDIO=pci_0000_0f_00_1
-VIRSH_USB=pci_0000_03_00_0
-VIRSH_NVME=pci_0000_0e_00_0
+VIRSH_GPU_VIDEO=pci_0000_10_00_0
+VIRSH_GPU_AUDIO=pci_0000_10_00_1
+VIRSH_USB=pci_0000_12_00_3
diff --git a/hosts/iroha/libvirt/hooks/cpuset.conf b/hosts/iroha/libvirt/hooks/cpuset.conf
index d208294..74cb68b 100644
--- a/hosts/iroha/libvirt/hooks/cpuset.conf
+++ b/hosts/iroha/libvirt/hooks/cpuset.conf
@@ -1,6 +1,6 @@
TOTAL_CORES='0-23' # 3900X: 12-core, 24-thread cpu
-HOST_CORES='0-4,12-16'
-VIRT_CORES0='5-11,17-23'
+HOST_CORES='6-11,18-23'
+VIRT_CORES0='0-5,12-17'
MEMNODES='0'
CPUSET_REFCOUNT=/tmp/cpuset-ref
diff --git a/hosts/iroha/libvirt/hooks/cpuset_release_common.sh b/hosts/iroha/libvirt/hooks/cpuset_release_common.sh
index 624fa5b..d30a3d6 100755
--- a/hosts/iroha/libvirt/hooks/cpuset_release_common.sh
+++ b/hosts/iroha/libvirt/hooks/cpuset_release_common.sh
@@ -25,6 +25,7 @@ fi
for i in blkio cpu cpuacct cpuset devices freezer memory net_cls perf_event;
do
rmdir ${CGROUP}/$i/machine/${PARTNAME0}.partition
+ rmdir ${CGROUP}/$i/machine/${PARTNAME1}.partition
done
/bin/echo ${TOTAL_CORES} > ${CPUSET}/machine/cpuset.cpus
diff --git a/hosts/iroha/libvirt/hooks/qemu.d/arcade/prepare/begin/cpuset_prepare_common.sh b/hosts/iroha/libvirt/hooks/qemu.d/arcade/prepare/begin/cpuset_prepare_common.sh
deleted file mode 120000
index fb5a2ab..0000000
--- a/hosts/iroha/libvirt/hooks/qemu.d/arcade/prepare/begin/cpuset_prepare_common.sh
+++ /dev/null
@@ -1 +0,0 @@
-../../../../cpuset_prepare_common.sh \ No newline at end of file
diff --git a/hosts/iroha/libvirt/hooks/qemu.d/arcade/prepare/begin/port_forward.sh b/hosts/iroha/libvirt/hooks/qemu.d/arcade/prepare/begin/port_forward.sh
deleted file mode 100755
index 7d5d484..0000000
--- a/hosts/iroha/libvirt/hooks/qemu.d/arcade/prepare/begin/port_forward.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#! /usr/bin/env bash
-
-# kdeconnect
-iptables -t nat -C PREROUTING -p tcp -s 192.168.1.0/24 --dport 1714:1764 \
- -j DNAT --to-destination 192.168.122.40:1714-1764 || \
-iptables -t nat -A PREROUTING -p tcp -s 192.168.1.0/24 --dport 1714:1764 \
- -j DNAT --to-destination 192.168.122.40:1714-1764
-iptables -t nat -C PREROUTING -p udp -s 192.168.1.0/24 --dport 1714:1764 \
- -j DNAT --to-destination 192.168.122.40:1714-1764 || \
-iptables -t nat -A PREROUTING -p udp -s 192.168.1.0/24 --dport 1714:1764 \
- -j DNAT --to-destination 192.168.122.40:1714-1764
-
-iptables -C FORWARD -m state -d 192.168.122.0/24 --state NEW,RELATED,ESTABLISHED -j ACCEPT || \
-iptables -I FORWARD -m state -d 192.168.122.0/24 --state NEW,RELATED,ESTABLISHED -j ACCEPT
diff --git a/hosts/iroha/libvirt/hooks/qemu.d/arcade/release/end/cpuset_release_common.sh b/hosts/iroha/libvirt/hooks/qemu.d/arcade/release/end/cpuset_release_common.sh
deleted file mode 120000
index d823a60..0000000
--- a/hosts/iroha/libvirt/hooks/qemu.d/arcade/release/end/cpuset_release_common.sh
+++ /dev/null
@@ -1 +0,0 @@
-../../../../cpuset_release_common.sh \ No newline at end of file
diff --git a/hosts/iroha/libvirt/hooks/qemu.d/arcade/release/end/port_close.sh b/hosts/iroha/libvirt/hooks/qemu.d/arcade/release/end/port_close.sh
deleted file mode 100755
index 0d58fa7..0000000
--- a/hosts/iroha/libvirt/hooks/qemu.d/arcade/release/end/port_close.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#! /usr/bin/env bash
-
-# kdeconnect (remove)
-iptables -t nat -C PREROUTING -p tcp -s 192.168.1.0/24 --dport 1714:1764 \
- -j DNAT --to-destination 192.168.122.40:1714-1764 || \
-iptables -t nat -D PREROUTING -p tcp -s 192.168.1.0/24 --dport 1714:1764 \
- -j DNAT --to-destination 192.168.122.40:1714-1764
-iptables -t nat -C PREROUTING -p udp -s 192.168.1.0/24 --dport 1714:1764 \
- -j DNAT --to-destination 192.168.122.40:1714-1764 || \
-iptables -t nat -D PREROUTING -p udp -s 192.168.1.0/24 --dport 1714:1764 \
- -j DNAT --to-destination 192.168.122.40:1714-1764
-
-iptables -C FORWARD -m state -d 192.168.122.0/24 --state NEW,RELATED,ESTABLISHED -j ACCEPT || \
-iptables -D FORWARD -m state -d 192.168.122.0/24 --state NEW,RELATED,ESTABLISHED -j ACCEPT
diff --git a/hosts/iroha/libvirt/hooks/qemu.d/corpa/prepare/begin/bind_vfio.sh b/hosts/iroha/libvirt/hooks/qemu.d/corpa/prepare/begin/bind_vfio.sh
new file mode 100755
index 0000000..3c602c5
--- /dev/null
+++ b/hosts/iroha/libvirt/hooks/qemu.d/corpa/prepare/begin/bind_vfio.sh
@@ -0,0 +1,16 @@
+#! /usr/bin/env bash
+
+source "/etc/libvirt/hooks/arcade.conf"
+
+modprobe -r nvidia-drm
+modprobe -r nvidia-modeset
+modprobe -r nvidia-uvm
+modprobe -r nvidia
+
+modprobe vfio
+modprobe vfio_iommu_type1
+modprobe vfio_pci
+
+virsh nodedev-detach $VIRSH_GPU_VIDEO
+virsh nodedev-detach $VIRSH_GPU_AUDIO
+virsh nodedev-detach $VIRSH_USB
diff --git a/hosts/iroha/libvirt/hooks/qemu.d/corpa/release/end/unbind_vfio.sh b/hosts/iroha/libvirt/hooks/qemu.d/corpa/release/end/unbind_vfio.sh
new file mode 100755
index 0000000..e3b1234
--- /dev/null
+++ b/hosts/iroha/libvirt/hooks/qemu.d/corpa/release/end/unbind_vfio.sh
@@ -0,0 +1,16 @@
+#! /usr/bin/env bash
+
+source "/etc/libvirt/hooks/arcade.conf"
+
+virsh nodedev-reattach $VIRSH_GPU_VIDEO
+virsh nodedev-reattach $VIRSH_GPU_AUDIO
+virsh nodedev-reattach $VIRSH_USB
+
+modprobe -r vfio_pci
+modprobe -r vfio_iommu_type1
+modprobe -r vfio
+
+modprobe nvidia-drm
+modprobe nvidia-modeset
+modprobe nvidia-uvm
+modprobe nvidia
diff --git a/hosts/iroha/libvirt/qemu/arcade.xml b/hosts/iroha/libvirt/qemu/arcade.xml
index 79e9216..5280dc9 100644
--- a/hosts/iroha/libvirt/qemu/arcade.xml
+++ b/hosts/iroha/libvirt/qemu/arcade.xml
@@ -7,7 +7,7 @@ or other application using the libvirt API.
<domain type='kvm'>
<name>arcade</name>
- <uuid>0ccf2904-b393-41b0-98a6-3c8722efdc94</uuid>
+ <uuid>ddc28570-735e-0000-0000-000000000000</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/11"/>
@@ -15,10 +15,8 @@ or other application using the libvirt API.
</metadata>
<memory unit='KiB'>16777216</memory>
<currentMemory unit='KiB'>16777216</currentMemory>
- <memoryBacking>
- <hugepages/>
- </memoryBacking>
- <vcpu placement='static'>6</vcpu>
+ <vcpu placement='static'>12</vcpu>
+ <iothreads>1</iothreads>
<cputune>
<vcpupin vcpu='0' cpuset='0'/>
<vcpupin vcpu='1' cpuset='12'/>
@@ -26,36 +24,43 @@ or other application using the libvirt API.
<vcpupin vcpu='3' cpuset='13'/>
<vcpupin vcpu='4' cpuset='2'/>
<vcpupin vcpu='5' cpuset='14'/>
+ <vcpupin vcpu='6' cpuset='3'/>
+ <vcpupin vcpu='7' cpuset='15'/>
+ <vcpupin vcpu='8' cpuset='4'/>
+ <vcpupin vcpu='9' cpuset='16'/>
+ <vcpupin vcpu='10' cpuset='5'/>
+ <vcpupin vcpu='11' cpuset='17'/>
+ <emulatorpin cpuset='6,18'/>
+ <iothreadpin iothread='1' cpuset='7,19'/>
+ <emulatorsched scheduler='fifo' priority='10'/>
+ <vcpusched vcpus='0' scheduler='fifo' priority='1'/>
+ <vcpusched vcpus='1' scheduler='fifo' priority='1'/>
+ <vcpusched vcpus='2' scheduler='fifo' priority='1'/>
+ <vcpusched vcpus='3' scheduler='fifo' priority='1'/>
+ <vcpusched vcpus='4' scheduler='fifo' priority='1'/>
+ <vcpusched vcpus='5' scheduler='fifo' priority='1'/>
+ <vcpusched vcpus='6' scheduler='fifo' priority='1'/>
+ <vcpusched vcpus='7' scheduler='fifo' priority='1'/>
+ <vcpusched vcpus='8' scheduler='fifo' priority='1'/>
+ <vcpusched vcpus='9' scheduler='fifo' priority='1'/>
+ <vcpusched vcpus='10' scheduler='fifo' priority='1'/>
+ <vcpusched vcpus='11' scheduler='fifo' priority='1'/>
</cputune>
<os firmware='efi'>
- <type arch='x86_64' machine='pc-q35-9.0'>hvm</type>
+ <type arch='x86_64' machine='pc-q35-9.1'>hvm</type>
<firmware>
<feature enabled='no' name='enrolled-keys'/>
<feature enabled='no' name='secure-boot'/>
</firmware>
- <loader readonly='yes' type='pflash'>/usr/share/edk2-ovmf/OVMF_CODE.fd</loader>
- <nvram template='/usr/share/edk2-ovmf/OVMF_VARS.fd'>/var/lib/libvirt/qemu/nvram/arcade_VARS.fd</nvram>
+ <loader readonly='yes' type='pflash' format='raw'>/usr/share/edk2-ovmf/OVMF_CODE.fd</loader>
+ <nvram template='/usr/share/edk2-ovmf/OVMF_VARS.fd' templateFormat='raw' format='raw'>/var/lib/libvirt/qemu/nvram/arcade_VARS.fd</nvram>
<smbios mode='host'/>
</os>
<features>
<acpi/>
<apic/>
- <hyperv mode='custom'>
- <relaxed state='on'/>
- <vapic state='on'/>
- <spinlocks state='on' retries='8191'/>
- <vpindex state='on'/>
- <runtime state='on'/>
- <synic state='on'/>
- <stimer state='on'>
- <direct state='on'/>
- </stimer>
- <reset state='off'/>
- <frequencies state='on'/>
- <reenlightenment state='off'/>
- <tlbflush state='on'/>
- <ipi state='on'/>
- <evmcs state='off'/>
+ <hyperv mode='passthrough'>
+ <vendor_id state='on' value='OriginalAMD'/>
</hyperv>
<kvm>
<hidden state='on'/>
@@ -64,20 +69,21 @@ or other application using the libvirt API.
<smm state='off'/>
<msrs unknown='ignore'/>
</features>
- <cpu mode='host-passthrough' check='none' migratable='on'>
- <topology sockets='1' dies='1' clusters='1' cores='3' threads='2'/>
+ <cpu mode='host-passthrough' check='none' migratable='off'>
+ <topology sockets='1' dies='1' clusters='1' cores='6' threads='2'/>
<cache mode='passthrough'/>
<feature policy='require' name='topoext'/>
<feature policy='require' name='hypervisor'/>
<feature policy='require' name='invtsc'/>
+ <feature policy='require' name='svm'/>
<feature policy='disable' name='monitor'/>
- <feature policy='disable' name='svm'/>
</cpu>
<clock offset='localtime'>
- <timer name='rtc' tickpolicy='catchup'/>
+ <timer name='rtc' present='no' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
<timer name='tsc' present='yes' mode='native'/>
+ <timer name='kvmclock' present='no'/>
<timer name='hypervclock' present='yes'/>
</clock>
<on_poweroff>destroy</on_poweroff>
@@ -89,6 +95,14 @@ or other application using the libvirt API.
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
+ <disk type='file' device='disk'>
+ <driver name='qemu' type='qcow2' cache='writeback' io='io_uring' discard='unmap' iothread='1'/>
+ <source file='/var/lib/libvirt/images/arcade.qcow2'/>
+ <target dev='vda' bus='virtio'/>
+ <serial>WD_BLACK_SN770_1TB_230423802979_1</serial>
+ <boot order='2'/>
+ <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
+ </disk>
<controller type='pci' index='0' model='pcie-root'/>
<controller type='pci' index='1' model='pcie-root-port'>
<model name='pcie-root-port'/>
@@ -172,15 +186,12 @@ or other application using the libvirt API.
<controller type='sata' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
</controller>
- <controller type='virtio-serial' index='0'>
- <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
- </controller>
<controller type='usb' index='0' model='qemu-xhci' ports='15'>
<address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
</controller>
- <interface type='bridge'>
+ <interface type='network'>
<mac address='52:54:00:b3:a7:83'/>
- <source bridge='virbr0'/>
+ <source network='default'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
</interface>
@@ -192,26 +203,19 @@ or other application using the libvirt API.
<audio id='1' type='none'/>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
- <address domain='0x0000' bus='0x0e' slot='0x00' function='0x0'/>
+ <address domain='0x0000' bus='0x12' slot='0x00' function='0x3'/>
</source>
- <boot order='1'/>
<address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
- <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
- </source>
- <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
- </hostdev>
- <hostdev mode='subsystem' type='pci' managed='yes'>
- <source>
- <address domain='0x0000' bus='0x0f' slot='0x00' function='0x0'/>
+ <address domain='0x0000' bus='0x10' slot='0x00' function='0x0'/>
</source>
<address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
- <address domain='0x0000' bus='0x0f' slot='0x00' function='0x1'/>
+ <address domain='0x0000' bus='0x10' slot='0x00' function='0x1'/>
</source>
<address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
</hostdev>
diff --git a/hosts/iroha/libvirt/qemu/corpa-nogpu.xml b/hosts/iroha/libvirt/qemu/corpa-nogpu.xml
new file mode 100644
index 0000000..b43ac1b
--- /dev/null
+++ b/hosts/iroha/libvirt/qemu/corpa-nogpu.xml
@@ -0,0 +1,237 @@
+<!--
+WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
+OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
+ virsh edit corpa-nogpu
+or other application using the libvirt API.
+-->
+
+<domain type='kvm'>
+ <name>corpa-nogpu</name>
+ <uuid>df007a1b-9a75-406a-98d2-b02a9d327715</uuid>
+ <metadata>
+ <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
+ <libosinfo:os id="http://microsoft.com/win/11"/>
+ </libosinfo:libosinfo>
+ </metadata>
+ <memory unit='KiB'>12582912</memory>
+ <currentMemory unit='KiB'>12582912</currentMemory>
+ <memoryBacking>
+ <source type='memfd'/>
+ <access mode='shared'/>
+ </memoryBacking>
+ <vcpu placement='static'>6</vcpu>
+ <iothreads>1</iothreads>
+ <os firmware='efi'>
+ <type arch='x86_64' machine='pc-q35-9.1'>hvm</type>
+ <firmware>
+ <feature enabled='no' name='enrolled-keys'/>
+ <feature enabled='no' name='secure-boot'/>
+ </firmware>
+ <loader readonly='yes' type='pflash' format='raw'>/usr/share/edk2-ovmf/OVMF_CODE.fd</loader>
+ <nvram template='/usr/share/edk2-ovmf/OVMF_VARS.fd' templateFormat='raw' format='raw'>/var/lib/libvirt/qemu/nvram/corpa-nogpu_VARS.fd</nvram>
+ <smbios mode='host'/>
+ </os>
+ <features>
+ <acpi/>
+ <apic/>
+ <hyperv mode='passthrough'>
+ </hyperv>
+ <kvm>
+ <hidden state='on'/>
+ </kvm>
+ <vmport state='off'/>
+ <smm state='off'/>
+ <msrs unknown='ignore'/>
+ </features>
+ <cpu mode='host-passthrough' check='none' migratable='off'>
+ <topology sockets='1' dies='1' clusters='1' cores='3' threads='2'/>
+ <cache mode='passthrough'/>
+ <feature policy='require' name='topoext'/>
+ <feature policy='require' name='hypervisor'/>
+ <feature policy='require' name='invtsc'/>
+ <feature policy='require' name='svm'/>
+ <feature policy='disable' name='monitor'/>
+ </cpu>
+ <clock offset='localtime'>
+ <timer name='rtc' present='no' tickpolicy='catchup'/>
+ <timer name='pit' tickpolicy='delay'/>
+ <timer name='hpet' present='no'/>
+ <timer name='tsc' present='yes' mode='native'/>
+ <timer name='kvmclock' present='no'/>
+ <timer name='hypervclock' present='yes'/>
+ </clock>
+ <on_poweroff>destroy</on_poweroff>
+ <on_reboot>restart</on_reboot>
+ <on_crash>destroy</on_crash>
+ <pm>
+ <suspend-to-mem enabled='no'/>
+ <suspend-to-disk enabled='no'/>
+ </pm>
+ <devices>
+ <emulator>/usr/bin/qemu-system-x86_64</emulator>
+ <disk type='file' device='disk'>
+ <driver name='qemu' type='qcow2' io='io_uring' iothread='1'/>
+ <source file='/var/lib/libvirt/images/corpa-1.qcow2'/>
+ <target dev='vdb' bus='virtio'/>
+ <boot order='1'/>
+ <address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
+ </disk>
+ <controller type='usb' index='0' model='qemu-xhci' ports='15'>
+ <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
+ </controller>
+ <controller type='pci' index='0' model='pcie-root'/>
+ <controller type='pci' index='1' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='1' port='0x10'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
+ </controller>
+ <controller type='pci' index='2' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='2' port='0x11'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
+ </controller>
+ <controller type='pci' index='3' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='3' port='0x12'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
+ </controller>
+ <controller type='pci' index='4' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='4' port='0x13'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
+ </controller>
+ <controller type='pci' index='5' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='5' port='0x14'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
+ </controller>
+ <controller type='pci' index='6' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='6' port='0x15'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/>
+ </controller>
+ <controller type='pci' index='7' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='7' port='0x16'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6'/>
+ </controller>
+ <controller type='pci' index='8' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='8' port='0x17'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x7'/>
+ </controller>
+ <controller type='pci' index='9' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='9' port='0x18'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0' multifunction='on'/>
+ </controller>
+ <controller type='pci' index='10' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='10' port='0x19'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x1'/>
+ </controller>
+ <controller type='pci' index='11' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='11' port='0x1a'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x2'/>
+ </controller>
+ <controller type='pci' index='12' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='12' port='0x1b'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x3'/>
+ </controller>
+ <controller type='pci' index='13' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='13' port='0x1c'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x4'/>
+ </controller>
+ <controller type='pci' index='14' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='14' port='0x1d'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x5'/>
+ </controller>
+ <controller type='pci' index='15' model='pcie-root-port'>
+ <model name='pcie-root-port'/>
+ <target chassis='15' port='0x1e'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x6'/>
+ </controller>
+ <controller type='pci' index='16' model='pcie-to-pci-bridge'>
+ <model name='pcie-pci-bridge'/>
+ <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
+ </controller>
+ <controller type='sata' index='0'>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
+ </controller>
+ <controller type='virtio-serial' index='0'>
+ <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
+ </controller>
+ <filesystem type='mount' accessmode='passthrough'>
+ <driver type='virtiofs' queue='1024'/>
+ <binary path='/usr/libexec/virtiofsd' xattr='on'/>
+ <source dir='/mnt/hdd/Roms'/>
+ <target dir='HostMountA'/>
+ <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
+ </filesystem>
+ <interface type='bridge'>
+ <mac address='52:54:00:80:5f:39'/>
+ <source bridge='virbr0'/>
+ <model type='virtio'/>
+ <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
+ </interface>
+ <channel type='qemu-vdagent'>
+ <source>
+ <clipboard copypaste='yes'/>
+ </source>
+ <target type='virtio' name='org.qemu.guest_agent.0'/>
+ <address type='virtio-serial' controller='0' bus='0' port='2'/>
+ </channel>
+ <channel type='spicevmc'>
+ <target type='virtio' name='com.redhat.spice.0'/>
+ <address type='virtio-serial' controller='0' bus='0' port='1'/>
+ </channel>
+ <input type='mouse' bus='virtio'>
+ <address type='pci' domain='0x0000' bus='0x0b' slot='0x00' function='0x0'/>
+ </input>
+ <input type='keyboard' bus='virtio'>
+ <address type='pci' domain='0x0000' bus='0x0c' slot='0x00' function='0x0'/>
+ </input>
+ <input type='mouse' bus='ps2'/>
+ <input type='keyboard' bus='ps2'/>
+ <tpm model='tpm-crb'>
+ <backend type='emulator' version='2.0'/>
+ </tpm>
+ <graphics type='spice' port='5900' autoport='no' listen='0.0.0.0'>
+ <listen type='address' address='0.0.0.0'/>
+ <channel name='main' mode='insecure'/>
+ <channel name='record' mode='insecure'/>
+ <image compression='auto_glz'/>
+ <jpeg compression='never'/>
+ <zlib compression='auto'/>
+ <playback compression='on'/>
+ <streaming mode='filter'/>
+ <clipboard copypaste='yes'/>
+ <filetransfer enable='no'/>
+ <gl enable='no'/>
+ </graphics>
+ <graphics type='egl-headless'>
+ <gl rendernode='/dev/dri/renderD128'/>
+ </graphics>
+ <sound model='ich9'>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
+ </sound>
+ <audio id='1' type='none'/>
+ <video>
+ <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
+ </video>
+ <watchdog model='itco' action='reset'/>
+ <memballoon model='virtio'>
+ <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
+ </memballoon>
+ <shmem name='looking-glass'>
+ <model type='ivshmem-plain'/>
+ <size unit='M'>32</size>
+ <address type='pci' domain='0x0000' bus='0x10' slot='0x01' function='0x0'/>
+ </shmem>
+ </devices>
+</domain>
diff --git a/hosts/iroha/libvirt/qemu/corpa.xml b/hosts/iroha/libvirt/qemu/corpa.xml
index fb884f0..af87cf2 100644
--- a/hosts/iroha/libvirt/qemu/corpa.xml
+++ b/hosts/iroha/libvirt/qemu/corpa.xml
@@ -27,34 +27,24 @@ or other application using the libvirt API.
<feature enabled='no' name='enrolled-keys'/>
<feature enabled='no' name='secure-boot'/>
</firmware>
- <loader readonly='yes' type='pflash'>/usr/share/edk2-ovmf/OVMF_CODE.fd</loader>
- <nvram template='/usr/share/edk2-ovmf/OVMF_VARS.fd'>/var/lib/libvirt/qemu/nvram/win11_VARS.fd</nvram>
+ <loader readonly='yes' type='pflash' format='raw'>/usr/share/edk2-ovmf/OVMF_CODE.fd</loader>
+ <nvram template='/usr/share/edk2-ovmf/OVMF_VARS.fd' templateFormat='raw' format='raw'>/var/lib/libvirt/qemu/nvram/corpa_VARS.fd</nvram>
+ <smbios mode='host'/>
</os>
<features>
<acpi/>
<apic/>
- <hyperv mode='custom'>
- <relaxed state='on'/>
- <vapic state='on'/>
- <spinlocks state='on' retries='8191'/>
- <vpindex state='on'/>
- <runtime state='on'/>
- <synic state='on'/>
- <stimer state='on'/>
- <reset state='off'/>
- <vendor_id state='on' value='whatever'/>
- <frequencies state='on'/>
- <reenlightenment state='off'/>
- <tlbflush state='on'/>
- <ipi state='on'/>
- <evmcs state='off'/>
+ <hyperv mode='passthrough'>
</hyperv>
+ <kvm>
+ <hidden state='on'/>
+ </kvm>
<vmport state='off'/>
<smm state='off'/>
<msrs unknown='ignore'/>
</features>
- <cpu mode='host-passthrough' check='none' migratable='on'>
- <topology sockets='1' dies='1' clusters='1' cores='6' threads='1'/>
+ <cpu mode='host-passthrough' check='none' migratable='off'>
+ <topology sockets='1' dies='1' clusters='1' cores='3' threads='2'/>
<cache mode='passthrough'/>
<feature policy='require' name='topoext'/>
<feature policy='require' name='hypervisor'/>
@@ -63,11 +53,12 @@ or other application using the libvirt API.
<feature policy='disable' name='monitor'/>
</cpu>
<clock offset='localtime'>
- <timer name='rtc' tickpolicy='catchup'/>
+ <timer name='rtc' present='no' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
- <timer name='hypervclock' present='yes'/>
<timer name='tsc' present='yes' mode='native'/>
+ <timer name='kvmclock' present='no'/>
+ <timer name='hypervclock' present='yes'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
@@ -78,26 +69,12 @@ or other application using the libvirt API.
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
- <disk type='file' device='cdrom'>
- <driver name='qemu' type='raw'/>
- <source file='/home/andrew/isos/tiny11.iso'/>
- <target dev='sdb' bus='sata'/>
- <readonly/>
- <address type='drive' controller='0' bus='0' target='0' unit='1'/>
- </disk>
- <disk type='file' device='cdrom'>
- <driver name='qemu' type='raw'/>
- <source file='/home/andrew/isos/virtio-win-0.1.262.iso'/>
- <target dev='sdd' bus='sata'/>
- <readonly/>
- <address type='drive' controller='0' bus='0' target='0' unit='3'/>
- </disk>
<disk type='file' device='disk'>
- <driver name='qemu' type='qcow2' cache='writeback' io='io_uring' discard='unmap' iothread='1'/>
- <source file='/var/lib/libvirt/images/corpa.qcow2'/>
- <target dev='vda' bus='virtio'/>
+ <driver name='qemu' type='qcow2' io='io_uring' iothread='1'/>
+ <source file='/var/lib/libvirt/images/corpa-1.qcow2'/>
+ <target dev='vdb' bus='virtio'/>
<boot order='1'/>
- <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
+ <address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
</disk>
<controller type='usb' index='0' model='qemu-xhci' ports='15'>
<address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
@@ -192,7 +169,7 @@ or other application using the libvirt API.
<driver type='virtiofs' queue='1024'/>
<binary path='/usr/libexec/virtiofsd' xattr='on'/>
<source dir='/mnt/hdd/Roms'/>
- <target dir='SteamLibraryA'/>
+ <target dir='HostMountA'/>
<address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
</filesystem>
<interface type='bridge'>
@@ -201,18 +178,6 @@ or other application using the libvirt API.
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
</interface>
- <serial type='pty'>
- <target type='isa-serial' port='0'>
- <model name='isa-serial'/>
- </target>
- </serial>
- <console type='pty'>
- <target type='serial' port='0'/>
- </console>
- <channel type='spicevmc'>
- <target type='virtio' name='com.redhat.spice.0'/>
- <address type='virtio-serial' controller='0' bus='0' port='1'/>
- </channel>
<channel type='qemu-vdagent'>
<source>
<clipboard copypaste='yes'/>
@@ -220,8 +185,11 @@ or other application using the libvirt API.
<target type='virtio' name='org.qemu.guest_agent.0'/>
<address type='virtio-serial' controller='0' bus='0' port='2'/>
</channel>
- <input type='tablet' bus='usb'>
- <address type='usb' bus='0' port='1'/>
+ <input type='mouse' bus='virtio'>
+ <address type='pci' domain='0x0000' bus='0x0b' slot='0x00' function='0x0'/>
+ </input>
+ <input type='keyboard' bus='virtio'>
+ <address type='pci' domain='0x0000' bus='0x0c' slot='0x00' function='0x0'/>
</input>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
@@ -230,22 +198,47 @@ or other application using the libvirt API.
</tpm>
<graphics type='spice' port='5900' autoport='no' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
+ <channel name='main' mode='insecure'/>
+ <channel name='record' mode='insecure'/>
+ <image compression='auto_glz'/>
+ <jpeg compression='never'/>
+ <zlib compression='auto'/>
+ <playback compression='on'/>
+ <streaming mode='filter'/>
+ <clipboard copypaste='yes'/>
+ <filetransfer enable='no'/>
<gl enable='no'/>
</graphics>
- <sound model='ich6'>
- <address type='pci' domain='0x0000' bus='0x10' slot='0x01' function='0x0'/>
- </sound>
- <audio id='1' type='spice'/>
+ <audio id='1' type='none'/>
<video>
- <model type='qxl' ram='65536' vram='65536' vgamem='65536' heads='1' primary='yes'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
+ <model type='none'/>
</video>
- <redirdev bus='usb' type='spicevmc'>
- <address type='usb' bus='0' port='2'/>
- </redirdev>
+ <hostdev mode='subsystem' type='pci' managed='yes'>
+ <source>
+ <address domain='0x0000' bus='0x12' slot='0x00' function='0x3'/>
+ </source>
+ <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
+ </hostdev>
+ <hostdev mode='subsystem' type='pci' managed='yes'>
+ <source>
+ <address domain='0x0000' bus='0x10' slot='0x00' function='0x0'/>
+ </source>
+ <address type='pci' domain='0x0000' bus='0x09' slot='0x00' function='0x0'/>
+ </hostdev>
+ <hostdev mode='subsystem' type='pci' managed='yes'>
+ <source>
+ <address domain='0x0000' bus='0x10' slot='0x00' function='0x1'/>
+ </source>
+ <address type='pci' domain='0x0000' bus='0x0a' slot='0x00' function='0x0'/>
+ </hostdev>
<watchdog model='itco' action='reset'/>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
</memballoon>
+ <shmem name='looking-glass'>
+ <model type='ivshmem-plain'/>
+ <size unit='M'>64</size>
+ <address type='pci' domain='0x0000' bus='0x10' slot='0x01' function='0x0'/>
+ </shmem>
</devices>
</domain>
diff --git a/hosts/iroha/libvirt/qemu/soy.xml b/hosts/iroha/libvirt/qemu/soy.xml
index 63b8b2a..672957b 100644
--- a/hosts/iroha/libvirt/qemu/soy.xml
+++ b/hosts/iroha/libvirt/qemu/soy.xml
@@ -58,13 +58,6 @@ or other application using the libvirt API.
<boot order='1'/>
<address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
</disk>
- <disk type='file' device='cdrom'>
- <driver name='qemu' type='raw'/>
- <source file='/home/andrew/isos/ubuntu-23.04-desktop-amd64.iso'/>
- <target dev='sda' bus='sata'/>
- <readonly/>
- <address type='drive' controller='0' bus='0' target='0' unit='0'/>
- </disk>
<controller type='usb' index='0' model='qemu-xhci' ports='15'>
<address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
</controller>
diff --git a/hosts/iroha/libvirt/qemu/xp.xml b/hosts/iroha/libvirt/qemu/xp.xml
index 6549f0d..2ac5a2a 100644
--- a/hosts/iroha/libvirt/qemu/xp.xml
+++ b/hosts/iroha/libvirt/qemu/xp.xml
@@ -27,14 +27,13 @@ or other application using the libvirt API.
<features>
<acpi/>
<apic/>
- <hyperv mode='custom'>
- <relaxed state='on'/>
- <vapic state='on'/>
- <spinlocks state='on' retries='8191'/>
+ <hyperv mode='passthrough'>
</hyperv>
<vmport state='off'/>
+ <smm state='off'/>
+ <msrs unknown='ignore'/>
</features>
- <cpu mode='host-passthrough' check='none' migratable='on'>
+ <cpu mode='host-passthrough' check='none' migratable='off'>
<topology sockets='1' dies='1' clusters='1' cores='2' threads='1'/>
</cpu>
<clock offset='localtime'>
@@ -67,7 +66,7 @@ or other application using the libvirt API.
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
- <source file='/home/andrew/isos/virtio-win-0.1.262.iso'/>
+ <source file='/home/andrew/isos/virtio-win-0.1.266.iso'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
diff --git a/hosts/moyo/grub_config b/hosts/moyo/grub_config
new file mode 100644
index 0000000..b095501
--- /dev/null
+++ b/hosts/moyo/grub_config
@@ -0,0 +1,77 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+#
+# To populate all changes in this file you need to regenerate your
+# grub configuration file afterwards:
+# 'grub-mkconfig -o /boot/grub/grub.cfg'
+#
+# See the grub info page for documentation on possible variables and
+# their associated values.
+
+GRUB_DISTRIBUTOR="Gentoo"
+
+# Default menu entry
+#GRUB_DEFAULT=0
+
+# Boot the default entry this many seconds after the menu is displayed
+#GRUB_TIMEOUT=5
+#GRUB_TIMEOUT_STYLE=menu
+
+# Append parameters to the linux kernel command line
+GRUB_CMDLINE_LINUX="quiet text rd.lvm.vg=moyo-vg0"
+#
+# Examples:
+#
+# Boot with network interface renaming disabled
+# GRUB_CMDLINE_LINUX="net.ifnames=0"
+#
+# Boot with systemd instead of sysvinit (openrc)
+# GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"
+
+# Append parameters to the linux kernel command line for non-recovery entries
+# default_hugepagesz=2M hugepagesz=2M hugepages=4096
+GRUB_CMDLINE_LINUX_DEFAULT="mitigations=off amd_iommu=on iommu=pt"
+
+# Uncomment to disable graphical terminal (grub-pc only)
+#GRUB_TERMINAL=console
+
+# The resolution used on graphical terminal.
+# Note that you can use only modes which your graphic card supports via VBE.
+# You can see them in real GRUB with the command `vbeinfo'.
+#GRUB_GFXMODE=640x480
+
+# Set to 'text' to force the Linux kernel to boot in normal text
+# mode, 'keep' to preserve the graphics mode set using
+# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
+# graphics mode, or a sequence of these separated by commas or
+# semicolons to try several modes in sequence.
+#GRUB_GFXPAYLOAD_LINUX=
+
+# Path to theme spec txt file.
+# The starfield is by default provided with use truetype.
+# NOTE: when enabling custom theme, ensure you have required font/etc.
+#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"
+
+# Background image used on graphical terminal.
+# Can be in various bitmap formats.
+#GRUB_BACKGROUND="/boot/grub/mybackground.png"
+
+# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
+#GRUB_DISABLE_LINUX_UUID=true
+
+# Comment if you don't want GRUB to pass "root=PARTUUID=xxx" parameter to kernel
+GRUB_DISABLE_LINUX_PARTUUID=false
+
+# Uncomment to disable generation of recovery mode menu entries
+#GRUB_DISABLE_RECOVERY=true
+
+# Uncomment to disable generation of the submenu and put all choices on
+# the top-level menu.
+# Besides the visual affect of no sub menu, this makes navigation of the
+# menu easier for a user who can't see the screen.
+#GRUB_DISABLE_SUBMENU=y
+
+# Uncomment to play a tone when the main menu is displayed.
+# This is useful, for example, to allow users who can't see the screen
+# to know when they can make a choice on the menu.
+#GRUB_INIT_TUNE="60 800 1"
diff --git a/hosts/moyo/libvirt/qemu/denpa.xml b/hosts/moyo/libvirt/qemu/denpa.xml
index 0c2029e..14e4972 100644
--- a/hosts/moyo/libvirt/qemu/denpa.xml
+++ b/hosts/moyo/libvirt/qemu/denpa.xml
@@ -13,8 +13,8 @@ or other application using the libvirt API.
<libosinfo:os id="http://rockylinux.org/rocky/9"/>
</libosinfo:libosinfo>
</metadata>
- <memory unit='KiB'>2097152</memory>
- <currentMemory unit='KiB'>2097152</currentMemory>
+ <memory unit='KiB'>4194304</memory>
+ <currentMemory unit='KiB'>4194304</currentMemory>
<memoryBacking>
<source type='memfd'/>
<access mode='shared'/>
diff --git a/hosts/sofue/configuration.nix b/hosts/sofue/configuration.nix
index a9ea990..18a6679 100644
--- a/hosts/sofue/configuration.nix
+++ b/hosts/sofue/configuration.nix
@@ -47,9 +47,9 @@ in rec {
scheme = import ../../themes/miia_new_years_2025/miia.nix;
starter = {
picture = ../../themes/miia_new_years_2025/splash.png;
- width = 50;
+ width = 53;
padding = {
- top = -5;
+ top = -6;
left = -11;
text = 0;
};
@@ -124,7 +124,6 @@ in rec {
export TTY=/dev/tty3
export XDG_VTNR=3
export WLR_RENDERER=gles2
- export WLR_DRM_DEVICES=/dev/dri/card0
cd $HOME
exec ${pkgs.kbd}/bin/openvt --switch --login --console 3 -f -- ${pkgs.sway}/bin/sway
'')
diff --git a/hosts/sofue/programs.nix b/hosts/sofue/programs.nix
index c66a289..d774241 100644
--- a/hosts/sofue/programs.nix
+++ b/hosts/sofue/programs.nix
@@ -6,7 +6,7 @@
#ardour
audacity
krita
- #olive-editor
+ olive-editor
yt-dlp
chatterino2
streamlink
@@ -14,6 +14,7 @@
wineWowPackages.staging
winetricks
cabextract
+ looking-glass-client
qbittorrent
ungoogled-chromium
vesktop
diff --git a/hosts/yashinoki/configuration.nix b/hosts/yashinoki/configuration.nix
index d2606e4..86d9d8b 100644
--- a/hosts/yashinoki/configuration.nix
+++ b/hosts/yashinoki/configuration.nix
@@ -26,9 +26,9 @@ in {
local = rec {
font = {
- name = "Comic Code";
- size = 13;
- baseline = -2;
+ name = "Dina";
+ size = 14;
+ baseline = 0;
};
ui-font = {
name = "M+ 2p";
@@ -40,14 +40,14 @@ in {
size = ui-font.size;
baseline = 0;
};
- scheme = import ../../themes/zelda_summer/zelda_summer.nix;
+ scheme = import ../../themes/year_of_snake/snake.nix;
starter = {
- picture = ../../themes/zelda_summer/splash_alt.png;
- width = 38;
- padding = { top = -1; left = -9; text = 0; };
+ picture = ../../themes/year_of_snake/splash.png;
+ width = 64;
+ padding = { top = -2; left = -6; text = 0; };
position = "left";
- footer = "Thinking about the next power move.\\n - Soulja Boy, 2014";
- footer_offset = 1;
+ footer = "";
+ footer_offset = 0;
};
monitors = {
monitor1 = "eDP-1";
@@ -158,7 +158,7 @@ in {
render_bit_depth = "10";
adaptive_sync = "on";
scale = "2";
- bg = "${../../themes/zelda_summer/wallpaper1.png} fit";
+ bg = "${../../themes/year_of_snake/wallpaper.png} fit";
};
};
workspaceOutputAssign = [
@@ -185,8 +185,7 @@ in {
"${mod4}+r" = "exec swaymsg -- output ${s.monitors.monitor1} transform 270";
"${mod4}+Shift+r" = "exec swaymsg -- output ${s.monitors.monitor1} transform 0";
"${mod4}+F1" = "exec swaymsg -- output ${s.monitors.monitor1} bg \\#${s.scheme.background-alt} solid_color";
- "${mod4}+F2" = "exec swaymsg -- output ${s.monitors.monitor1} bg ${../../themes/zelda_summer/wallpaper1.png} fill";
- "${mod4}+F3" = "exec swaymsg -- output ${s.monitors.monitor1} bg ${../../themes/zelda_summer/wallpaper_alt1.png} fill";
+ "${mod4}+F2" = "exec swaymsg -- output ${s.monitors.monitor1} bg ${../../themes/year_of_snake/wallpaper.png} fill";
};
};
};
diff --git a/nix/gaming.nix b/nix/gaming.nix
index b08c79c..170b565 100644
--- a/nix/gaming.nix
+++ b/nix/gaming.nix
@@ -7,7 +7,7 @@ in {
};
environment.systemPackages = with pkgs; [
mangohud
- #umu
+ umu
protontricks
lutris
#legendary-gl
diff --git a/nix/programs/sway.nix b/nix/programs/sway.nix
index 58db6d3..8b86d86 100644
--- a/nix/programs/sway.nix
+++ b/nix/programs/sway.nix
@@ -267,7 +267,7 @@ in {
{ command = "floating enable"; criteria.app_id = "mauri"; }
{ command = "inhibit_idle fullscreen"; criteria.title = "Parsec"; }
{ command = "inhibit_idle fullscreen"; criteria.class = "steam_app_.*"; }
- { command = "inhibit_idle fullscreen; allow_tearing yes"; criteria.app_id = "gamescope"; }
+ { command = "inhibit_idle fullscreen; allow_tearing yes; floating enable"; criteria.app_id = "gamescope"; }
{ command = "inhibit_idle fullscreen; allow_tearing yes"; criteria.class = ".gamescope-wrapped"; }
{ command = "inhibit_idle fullscreen; allow_tearing yes"; criteria.app_id = "osu!"; }
{ command = "inhibit_idle fullscreen; allow_tearing yes"; criteria.class = "cs2"; }
diff --git a/nix/scripts.nix b/nix/scripts.nix
index 7b41137..c4146e1 100644
--- a/nix/scripts.nix
+++ b/nix/scripts.nix
@@ -19,6 +19,7 @@ let
"shift-jis-zip"
"moonrune-charset-utf8"
"xbox360-ffmpeg-enc"
+ "looking-glass"
"discord-wayland"
];
in {
diff --git a/nix/user.nix b/nix/user.nix
index 74e46c3..3891a24 100644
--- a/nix/user.nix
+++ b/nix/user.nix
@@ -60,6 +60,10 @@ in {
sloccount
(aspellWithDicts (dicts: with dicts; [ en en-computers en-science ]))
rsync
+ (python3.withPackages (python-pkgs: [
+ python-pkgs.requests
+ python-pkgs.beautifulsoup4
+ ]))
python3
htop
neofetch
diff --git a/nix/virtualisation.nix b/nix/virtualisation.nix
index 7e253fe..bd542e9 100644
--- a/nix/virtualisation.nix
+++ b/nix/virtualisation.nix
@@ -1,5 +1,5 @@
{ pkgs, ... }: {
- users.users.andrew.extraGroups = [ "libvirtd" ];
+ users.users.andrew.extraGroups = [ "libvirtd" "kvm" ];
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
virtualisation.spiceUSBRedirection.enable = true;
diff --git a/scripts/looking-glass b/scripts/looking-glass
new file mode 100755
index 0000000..f6e4992
--- /dev/null
+++ b/scripts/looking-glass
@@ -0,0 +1,2 @@
+#! /usr/bin/env sh
+looking-glass-client -c 192.168.1.192 -f /dev/shm2/looking-glass
diff --git a/themes/year_of_snake/snake.nix b/themes/year_of_snake/snake.nix
new file mode 100644
index 0000000..af85640
--- /dev/null
+++ b/themes/year_of_snake/snake.nix
@@ -0,0 +1,23 @@
+rec {
+ lightness = "dark";
+ background = "2d1a1a"; #2d1a1a
+ background-alt = "2d1a1a"; #2d1a1a
+ foreground = "ffffff"; #ffffff
+ color0 = "${background}";
+ color1 = "7b3837"; #7b3837
+ color2 = "e5d6cf"; #e5d6cf
+ color3 = "f5c4a4"; #f5c4a4
+ color4 = "f3eff0"; #f3eff0
+ color5 = "9e4746"; #9e4746
+ color6 = "f2d7b9"; #f2d7b9
+ color7 = "${foreground}";
+ color8 = "${color6}";
+ color9 = "${color1}";
+ color10 = "${color2}";
+ color11 = "${color3}";
+ color12 = "${color4}";
+ color13 = "${color5}";
+ color14 = "${color6}";
+ color15 = "${color7}";
+ alpha = 0.96;
+}
diff --git a/themes/year_of_snake/splash.kra b/themes/year_of_snake/splash.kra
new file mode 100644
index 0000000..8f94fa2
--- /dev/null
+++ b/themes/year_of_snake/splash.kra
Binary files differ
diff --git a/themes/year_of_snake/splash.png b/themes/year_of_snake/splash.png
new file mode 100644
index 0000000..bedee26
--- /dev/null
+++ b/themes/year_of_snake/splash.png
Binary files differ
diff --git a/themes/year_of_snake/wallpaper.kra b/themes/year_of_snake/wallpaper.kra
new file mode 100644
index 0000000..5503f36
--- /dev/null
+++ b/themes/year_of_snake/wallpaper.kra
Binary files differ
diff --git a/themes/year_of_snake/wallpaper.png b/themes/year_of_snake/wallpaper.png
new file mode 100644
index 0000000..df88d73
--- /dev/null
+++ b/themes/year_of_snake/wallpaper.png
Binary files differ