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:
Donovan Glover 2023-06-12 20:55:46 -04:00
parent 8ce1e73531
commit 9b55087bf4
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -24,8 +24,20 @@ in
mountPoint = hostPath;
isReadOnly = true;
};
dri = rec {
hostPath = "/dev/dri";
mountPoint = hostPath;
};
};
allowedDevices = [
{
modifier = "rw";
node = "/dev/dri/renderD128";
}
];
config = { pkgs, lib, ... }: {
imports = [
home-manager.nixosModules.home-manager