Adds sound and puredata.

This commit is contained in:
Bailey Stevens 2023-08-03 20:34:02 -04:00
parent 544883897a
commit 498cd41c10
2 changed files with 17 additions and 6 deletions

View file

@ -8,10 +8,16 @@
# Enables opengl support
hardware.opengl.enable = true;
sound.enable = true;
services.jack.jackd.enable = true;
services.jack.alsa.enable = true;
# Includes packages needed for startx
environment.systemPackages = with pkgs; [
xorg.xauth xorg.xinit
];
services.xserver = {
enable = true;
displayManager.autoLogin.user = "appuser";
windowManager.fluxbox.enable = true;
};
users = {
# No need to edit users on a single-purpose system.
@ -25,10 +31,10 @@
# Unprivledged user for running the application.
appuser = {
isNormalUser = true;
group = "appuser";
extraGroups = [ "jackaudio" ];
password = "";
packages = with pkgs; [
graphfix
graphfix puredata
];
};
};

View file

@ -6,7 +6,12 @@
{ from = "host"; host.port = 2222; guest.port = 22; }
];
graphics = true;
qemu.options = [ "-bios" "${pkgs.OVMF.fd}/FV/OVMF.fd" ];
qemu.options = [
"-bios" "${pkgs.OVMF.fd}/FV/OVMF.fd"
"-audiodev" "driver=pa,id=default"
"-device" "intel-hda"
"-device" "hda-output,audiodev=default"
];
};
services.qemuGuest.enable = true;
}