introduce official nixgl wrapper

This commit is contained in:
Thilo Billerbeck 2024-12-19 01:26:25 +01:00
commit 998f2da70e
6 changed files with 11 additions and 44 deletions
home-manager/modules

View file

@ -2,6 +2,7 @@
lib,
pkgs,
config,
inputs,
...
}:
with lib;
@ -81,6 +82,13 @@ with lib;
news.display = "silent";
targets.genericLinux.enable = config.machine.isGeneric;
nixGL = {
packages = inputs.nixgl.packages;
defaultWrapper = "mesa";
installScripts = ["mesa"];
vulkan.enable = true;
};
home = {
username = "${config.machine.username}";
homeDirectory = "/home/${config.machine.username}";

View file

@ -8,7 +8,7 @@
with lib;
let
nixGL = import ./../../home-manager/utils/nixGLWrap.nix { inherit pkgs config; };
nixGL = config.lib.nixGL.wrap;
electronFlags = "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --disable-gpu-shader-disk-cache -n";
in
{