Hacker News new | ask | show | jobs
by unzadunza 1414 days ago
Thanks for pointing out mitchellh/nixos-config. Do you have a config published for nixos with UTM? I’m having a heck of a time getting the screen resolution and font sizes where I want them and I’m kind of lost.
2 comments

Yep. Note that there's nothing you need to do to configure display resolution in UTM / qemu. You do need the spice guest tools installed in your nixos vm though. The only thing you should need to do is set the resolution in whatever display manager you use in nixos. For me, I run the sway window manager. My display manager is kanshi.

Here's my config: https://git.sr.ht/~averagechris/dotfiles

Here's a branch that I has some aarch64 specific things in it that I'm using for my guest vm config (I will merge it into the main branch when I get an hour or two so this link might die at some point) https://git.sr.ht/~averagechris/dotfiles/tree/aarch64-work-v...

Here's the link to my display manager config https://git.sr.ht/~averagechris/dotfiles/tree/aarch64-work-v...

> I’m having a heck of a time getting the screen resolution and font sizes where I want them and I’m kind of lost.

    services.xserver.videoDrivers = [ "qxl" ];
    services.spice-vdagentd.enable = true;
I just tried that and it resulted in a black screen. I suppose there is more to using that video driver than just that line in a nix configuration?
Hey! I was misinformed, try removing:

   services.xserver.videoDrivers = [ "qxl" ];
Then you're only left with the spice line. I think qxl requires other configuration.