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;
|
mountPoint = hostPath;
|
||||||
isReadOnly = true;
|
isReadOnly = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dri = rec {
|
||||||
|
hostPath = "/dev/dri";
|
||||||
|
mountPoint = hostPath;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
allowedDevices = [
|
||||||
|
{
|
||||||
|
modifier = "rw";
|
||||||
|
node = "/dev/dri/renderD128";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
config = { pkgs, ... }: {
|
config = { pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
nix-gaming.nixosModules.pipewireLowLatency
|
nix-gaming.nixosModules.pipewireLowLatency
|
||||||
|
Loading…
Reference in New Issue
Block a user