summaryrefslogtreecommitdiff
path: root/modules/core/virtualisation/qemu.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-22 15:12:25 -0700
committerFuwn <[email protected]>2024-09-22 15:13:02 -0700
commit9884d07e6574ef81e1e7da94f90ee08bee036dd3 (patch)
tree268ddd123679ca3b6b5b56a2b3b9d9707271b2f7 /modules/core/virtualisation/qemu.nix
parentlock: rui, tsutsumi (diff)
downloadnixos-config-9884d07e6574ef81e1e7da94f90ee08bee036dd3.tar.xz
nixos-config-9884d07e6574ef81e1e7da94f90ee08bee036dd3.zip
core: move variables and virtualisation to desktop
Diffstat (limited to 'modules/core/virtualisation/qemu.nix')
-rw-r--r--modules/core/virtualisation/qemu.nix45
1 files changed, 0 insertions, 45 deletions
diff --git a/modules/core/virtualisation/qemu.nix b/modules/core/virtualisation/qemu.nix
deleted file mode 100644
index 849ead1..0000000
--- a/modules/core/virtualisation/qemu.nix
+++ /dev/null
@@ -1,45 +0,0 @@
-{ pkgs, ... }:
-{
- environment.systemPackages = with pkgs; [
- qemu_kvm
- qemu
- ];
-
- hardware.pulseaudio.extraConfig = ''
- load-module module-native-protocol-unix auth-group=qemu-libvirtd socket=/tmp/pulse-socket
- '';
-
- boot.kernelModules = [ "vfio-pci" ];
-
- networking.firewall.trustedInterfaces = [
- "virbr0"
- "br0"
- ];
-
- services.udev.extraRules = ''
- SUBSYSTEM=="vfio", OWNER="root", GROUP="kvm"
- '';
-
- virtualisation.libvirtd.qemu = {
- package = pkgs.qemu_kvm;
- runAsRoot = true;
- swtpm.enable = true;
-
- ovmf = {
- enable = true;
-
- packages = [
- (pkgs.OVMFFull.override {
- secureBoot = true;
- tpmSupport = true;
- }).fd
- ];
- };
-
- verbatimConfig = ''
- namespaces = []
-
- dynamic_ownership = 0
- '';
- };
-}