mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-29 10:09:30 +01: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,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
|
||||
|
Loading…
Reference in New Issue
Block a user