forked from extern/nix-config
containers(wine): Passthrough /dev/dri
Enables the wine container to have native graphics performance on the host.
This commit is contained in:
parent
62feee858b
commit
89361952a8
@ -20,8 +20,20 @@ let VARIABLES = import ../src/variables.nix; in {
|
||||
mountPoint = hostPath;
|
||||
isReadOnly = true;
|
||||
};
|
||||
|
||||
dri = rec {
|
||||
hostPath = "/dev/dri";
|
||||
mountPoint = hostPath;
|
||||
};
|
||||
};
|
||||
|
||||
allowedDevices = [
|
||||
{
|
||||
modifier = "rw";
|
||||
node = "/dev/dri/renderD128";
|
||||
}
|
||||
];
|
||||
|
||||
config = { pkgs, ... }: {
|
||||
imports = [
|
||||
nix-gaming.nixosModules.pipewireLowLatency
|
||||
|
Loading…
Reference in New Issue
Block a user