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

View file

@ -6,7 +6,12 @@
{ from = "host"; host.port = 2222; guest.port = 22; } { from = "host"; host.port = 2222; guest.port = 22; }
]; ];
graphics = true; 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; services.qemuGuest.enable = true;
} }