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,8 +24,20 @@ 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, lib, ... }: {
|
config = { pkgs, lib, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
Loading…
x
Reference in New Issue
Block a user