News for hackers. Stuff that matters.
Re:Nix-GUI: Make NixOS usable for non-technical users throug... by carlhjerpe on Sunday October 10, 2021 @08:05AM (#28817755)
I have a Windows VM on a NixOS host for gaming, was really quite convenient to set it up, I set it up on a separate drive to be able to boot native too but I ended up never really doing it, so I will reconfigure my 2 drives as a Zraid and have windows on a Zvol instead.

NVIDIA works great, but if I were to buy new hardware I'd go AMD (maybe Intel when the time comes)

Re:Nix-GUI: Make NixOS usable for non-technical users throug... by depressedpanda on Sunday October 10, 2021 @08:44AM (#28817981)
> I have a Windows VM on a NixOS host for gaming, was really quite convenient to set it up, I set it up on a separate drive to be able to boot native too

I've been planning on doing exactly this, but haven't had the time to figure out the best way of going about it.

Is there a good guide/write up you'd recommend? (I already have a Windows 10 install on a separate SSD, but I rarely boot it because I can't stand the OS)

Re:Nix-GUI: Make NixOS usable for non-technical users throug... by gallexme on Sunday October 10, 2021 @09:13AM (#28818162)
I use https://github.com/danielfullmer/nixos-nvidia-vgpu + https://looking-glass.io/ very successfully

Can theoretically game on Linux and windows at same time with just a single gpu (2080 ti), mainly use it cause I only have single gpu and I don't want to loose hardware acceleration on Linux, the nixos module both applies a the vgpu unlocker for consumer graphic cards (so u can split a gpu in multiple virtual gpus) https://github.com/DualCoder/vgpu_unlock

And merges it with the GeForce drivers so the host gpu does not stop having display output

And I just passthrough the vgpu and Xbox controllers to the vm with qemu and my main windows nvme disk (windows naturally just works inside and outside a vm for me, dual boot)

Re:Nix-GUI: Make NixOS usable for non-technical users throug... by caevee on Tuesday October 12, 2021 @02:59PM (#28843659)
Hi I'm still a noob at NixOS and Linux in general. Would it be possible for you to help me set up something similar?
Re:Nix-GUI: Make NixOS usable for non-technical users throug... by gallexme on Wednesday October 13, 2021 @10:04AM (#28852210)
Possibly, can't be a 3xxx Nvidia gpu though afaik, and you'll need some way to get a vgpu license /activation which I can't help you with
Re:Nix-GUI: Make NixOS usable for non-technical users throug... by caevee on Wednesday October 13, 2021 @01:31PM (#28854984)
I've got a 1060. Where can I hit you up?
Re:Nix-GUI: Make NixOS usable for non-technical users throug... by gallexme on Thursday October 14, 2021 @05:55AM (#28862229)
Added email to hacker news profile, also got discord and other chats, just hit me up with ur Id/handles/invites via email
Re:Nix-GUI: Make NixOS usable for non-technical users throug... by carlhjerpe on Sunday October 10, 2021 @09:51AM (#28818397)
So first I did this I did it on manjaro using this archwiki article: https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF

When I moved to NixOS I just did a normal NixOS install and applied the same parameters to kernel boot as before and passed the GPU through.

I was using looking-glass at first, but my computer is too slow and crappy (memory bandwidth seems to choke) to run 144fps in overwatch.

You just pass the entire block device into the VM if you wanna keep your setup, or pass it through with as PCIE if it's an NVMe device.

I thought it'd be hard, but you'll be up and running in a day

Re:Nix-GUI: Make NixOS usable for non-technical users throug... by smoldesu on Sunday October 10, 2021 @10:40AM (#28818778)
Overwatch is also highly optimized via Wine, if you're looking to play. I'm on 6-year-old hardware (i5 4460, GTX 1050ti) and I have no problem hitting 120+ FPS in-game.

https://www.youtube.com/watch?v=voXc1nCD4IA

This video is a pretty good demonstration of how neck-and-neck the performance is these days. Frankly, I feel like it stutters less in Linux, but I might just be imagining things.