mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-20 09:47:57 +02:00
containers: Use graphics from host
As alluded to earlier, this significantly increases the performance of graphical applications running inside containers.
This commit is contained in:
parent
8ce1e73531
commit
9b55087bf4
@ -24,7 +24,19 @@ in
|
||||
mountPoint = hostPath;
|
||||
isReadOnly = true;
|
||||
};
|
||||
|
||||
dri = rec {
|
||||
hostPath = "/dev/dri";
|
||||
mountPoint = hostPath;
|
||||
};
|
||||
};
|
||||
|
||||
allowedDevices = [
|
||||
{
|
||||
modifier = "rw";
|
||||
node = "/dev/dri/renderD128";
|
||||
}
|
||||
];
|
||||
|
||||
config = { pkgs, lib, ... }: {
|
||||
imports = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user