mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
first attempt on gpu passthrough
This commit is contained in:
parent
329d8d228b
commit
2df9f4c65d
5 changed files with 114 additions and 41 deletions
|
@ -6,6 +6,7 @@
|
|||
./hardware-configuration.nix
|
||||
./modules/networks
|
||||
./modules/greetd
|
||||
./modules/virtualisation
|
||||
./modules/snapper
|
||||
];
|
||||
|
||||
|
@ -156,7 +157,6 @@
|
|||
fwupd.enable = true; # firmware updates
|
||||
};
|
||||
|
||||
# fun fact: if I disable this, Hyprland breaks due to missing egl dependencies
|
||||
programs.steam.enable = true; # putting steam in here cause in home manager it doesn't work
|
||||
|
||||
programs.ausweisapp = {
|
||||
|
@ -164,22 +164,6 @@
|
|||
openFirewall = true;
|
||||
};
|
||||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
|
||||
# fix to enable secure boot in vms
|
||||
environment.etc = {
|
||||
"ovmf/edk2-x86_64-secure-code.fd" = {
|
||||
source = config.virtualisation.libvirtd.qemu.package + "/share/qemu/edk2-x86_64-secure-code.fd";
|
||||
};
|
||||
|
||||
"ovmf/edk2-i386-vars.fd" = {
|
||||
source = config.virtualisation.libvirtd.qemu.package + "/share/qemu/edk2-i386-vars.fd";
|
||||
mode = "0644";
|
||||
user = "libvirtd";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=2h
|
||||
'';
|
||||
|
@ -221,8 +205,8 @@
|
|||
killall
|
||||
zip
|
||||
unzip
|
||||
pciutils
|
||||
|
||||
virt-viewer # multi monitor for vms
|
||||
sbctl
|
||||
|
||||
deploy-rs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue