Adds sound and puredata.
This commit is contained in:
parent
544883897a
commit
498cd41c10
16
citrus.nix
16
citrus.nix
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue