home: amneesh: wrap hyprland in nixGL
Signed-off-by: Amneesh Singh <amneesh@ti.com>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
imports = [
|
||||
./pkgs.nix
|
||||
./nixgl.nix
|
||||
|
||||
# From personal
|
||||
../natto/ags
|
||||
|
25
home/amneesh/nixgl.nix
Normal file
25
home/amneesh/nixgl.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (inputs) nixgl;
|
||||
inherit (inputs.hyprland.packages.${pkgs.system}) hyprland;
|
||||
inherit (config.lib.nixGL) wrap;
|
||||
in
|
||||
{
|
||||
nixGL = {
|
||||
packages = nixgl.packages;
|
||||
defaultWrapper = "mesa";
|
||||
offloadWrapper = "nvidiaPrime";
|
||||
installScripts = [
|
||||
"mesa"
|
||||
"nvidiaPrime"
|
||||
];
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland.package = lib.mkForce (wrap hyprland);
|
||||
}
|
Reference in New Issue
Block a user