Skip to content

Commit c0519e2

Browse files
nix: flake: enabel hardware Accelerated video playback
Signed-off-by: Hritwik <hritwiksinghal@protonmail.com>
1 parent cc0446c commit c0519e2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

nix/flake.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
"${toString modulesPath}/profiles/qemu-guest.nix" # needed, otherwise vm will get stuck on `waiting for device dev/disk/by-label/nixos`
3838
];
3939

40+
# https://wiki.nixos.org/wiki/Accelerated_Video_Playback
41+
hardware.graphics = {
42+
enable = true;
43+
enable32Bit = true;
44+
};
45+
4046
# These images are configured to log to the serial console, and not to your display. We override the image's default console=ttyS0.
4147
boot.kernelParams = lib.mkForce [ "console=tty0" ];
4248

0 commit comments

Comments
 (0)