...
 
Commits (3)
......@@ -5,7 +5,7 @@
createHome = true;
description = "Naoki OKAMURA";
group = "users";
extraGroups = [ "wheel" "audio" "video" "disk" "input" "storage" "docker" "rslsync" "kmem" ];
extraGroups = [ "wheel" "audio" "video" "render" "disk" "input" "storage" "docker" "rslsync" "kmem" ];
home = "/home/nyarla";
isNormalUser = true;
shell = pkgs.zsh;
......
{ pkgs, ... }:
{
musnix = {
enable = true;
soundcardPciId = "00:1f.3";
kernel = {
optimize = true;
realtime = true;
packages = pkgs.linuxPackages_latest_rt.extend (self: super: {
nvidia_x11 = super.nvidia_x11.overrideAttrs (old: rec {
builder = pkgs.writeScript "builder.sh" ''
export IGNORE_PREEMPT_RT_PRESENCE=1
. ${<nixpkgs/pkgs/os-specific/linux/nvidia-x11/builder.sh>}
'';
});
});
};
};
hardware.pulseaudio.package = pkgs.pulseaudioFull.override { jackaudioSupport = true; };
environment.systemPackages = with pkgs; [
qjackctl jack2Full a2jmidid
];
services.dbus.packages = with pkgs; [
qjackctl jack2Full a2jmidid
];
}
......@@ -23,16 +23,7 @@ launch:
--group-add="26" \
--group-add="174" \
\
--device=/dev/dri \
--device=/dev/vmmon \
--device=/dev/vmnet1 \
--device=/dev/vmnet8 \
--device=/dev/mem \
--device=/dev/cdrom \
--device=/dev/sr0 \
--device=/dev/video0 \
--device=/dev/video1 \
--device=/dev/sda \
--device=/dev \
\
--volume=/sys:/sys:ro \
--volume=/nix:/nix:ro \
......@@ -42,6 +33,7 @@ launch:
--volume=$$HOME/.vmware/networking:/etc/vmware/networking \
--volume=$$HOME/.vmware/vmnet1:/etc/vmware/vmnet1 \
--volume=$$HOME/.vmware/vmnet8:/etc/vmware/vmnet8 \
--volume=$$HOME/.config/vmware/isoimages:/usr/lib/vmware/isoimages \
\
--volume=/etc/group:/etc/group:ro \
--volume=/etc/passwd:/etc/passwd:ro \
......@@ -59,9 +51,9 @@ launch:
--volume=/etc/fonts:/etc/fonts:ro \
\
--volume=$$HOME/VM:$$HOME/vmware \
--volume=/run/media/$$USER/data:$$HOME/data \
--volume=$$HOME/Downloads:$$HOME/Downloads \
--volume=$$HOME/.vmware:$$HOME/.vmware \
--volume=$$HOME/.config/vmware:$$HOME/.config/vmware \
--volume=$$HOME/.cache/vmware:$$HOME/.cache/vmware \
--volume=$$HOME/.local/share/vmware:$$HOME/.local/share \
$$USER:vmware bash -c "$(C)"