My NixOS configuration with Nix Flakes, Home Manager, Stylix, and Hyprland.
Go to file
Donovan Glover 168134bcf3
qemu: Add audio support to virtual machines
This fixes an issue where virtual machines would previously use dummy
output. More specifically, pulseaudio is used since pipewire supports
it, and intel hd audio (hda) is used since it's generally regarded as
one of the better options based on information available online.

Note that -audio is used instead of the outdated -audiodev and -soundhw
options. This setup also avoids the choppy audio observed with other
solutions like alsa.

References:
- https://www.qemu.org/docs/master/system/qemu-manpage.html
- https://github.com/NixOS/nixpkgs/issues/175378
- https://superuser.com/questions/1337570
- https://en.wikipedia.org/wiki/Intel_High_Definition_Audio
- https://gitlab.com/qemu-project/qemu/-/issues/1519
- https://lists.nongnu.org/archive/html/qemu-discuss/2020-04/msg00089.html
2023-06-18 07:02:19 -04:00
assets meta: Flatten packages directory 2023-06-17 20:55:32 -04:00
containers containers: Add obsidian 2023-06-17 22:43:01 -04:00
home udiskie: Only enable if hyprland 2023-06-17 22:46:29 -04:00
modules meta: Use separate module for plasma 2023-06-17 22:23:25 -04:00
overlays meta: Flatten overlays directory 2023-06-16 12:47:36 -04:00
packages meta: Flatten packages directory 2023-06-17 20:55:32 -04:00
patches meta: Flatten overlays directory 2023-06-16 12:47:36 -04:00
specializations meta: Use separate module for plasma 2023-06-17 22:23:25 -04:00
src qemu: Add audio support to virtual machines 2023-06-18 07:02:19 -04:00
tests meta: Use separate directory for home-manager modules 2023-06-16 08:13:34 -04:00
.gitignore Update .gitignore 2023-05-10 22:19:36 -04:00
flake.lock chore: Update flake inputs 2023-06-16 13:58:48 -04:00
flake.nix nix-gaming: Use cachix 2023-06-16 14:15:37 -04:00
LICENSE Update LICENSE 2023-04-30 19:37:54 -04:00
README.md misc: Fix typo 2023-06-16 06:20:39 -04:00
treefmt.toml meta: Add treefmt 2023-06-12 03:48:15 -04:00

nix-config

My NixOS configuration with Nix Flakes, Home Manager, Stylix, and Hyprland.

Features

  • Clean, readable code that can be easily modified to add/remove things as needed.
  • Fully reproducible and declarative environment thanks to NixOS.
  • Reasonably secure containers isolated from your personal files and network.
  • Nix Flakes + Home Manager + Btrfs on LUKS.
  • Simple yet effective Neovim setup with nvim-lspconfig.
  • Modern Wayland support with Hyprland and the master-stack layout.
  • Full Japanese support with fonts, input method, and wine covered.
  • A universal color scheme inherited by all applications.

Usage

git clone https://github.com/donovanglover/nix-config && cd nix-config
nixos-rebuild build-vm --flake .#nixos
./result/bin/run-nixos-vm

The code base is designed to be small so it's easy to adjust things as needed. Have fun!