mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
feat: add nixGL module
This commit is contained in:
parent
9c1df052a2
commit
faff8d9ee6
5 changed files with 62 additions and 3 deletions
17
profiles/home/common/nixgl.nix
Normal file
17
profiles/home/common/nixgl.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ lib, config, nixgl, ... }:
|
||||
{
|
||||
nixGL = lib.mkIf (!config.swarselsystems.isNixos) {
|
||||
inherit (nixgl) packages;
|
||||
defaultWrapper = lib.mkDefault "mesa";
|
||||
vulkan.enable = lib.mkDefault false;
|
||||
prime = lib.mkIf config.swarselsystem.isSecondaryGpu {
|
||||
card = config.swarselsystem.secondaryGpuCard;
|
||||
installScript = "mesa";
|
||||
};
|
||||
offloadWrapper = lib.mkIf config.swarselsystem.isSecondaryGpu "mesaPrime";
|
||||
installScripts = [
|
||||
"mesa"
|
||||
"mesaPrime"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue