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
|
# 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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue