Disable gpu for electron apps with wrapper-manager

This commit is contained in:
SebastianStork 2024-05-07 12:10:40 +02:00
parent 6626303217
commit 1290098798
8 changed files with 108 additions and 4 deletions

21
wrappers/marktext.nix Normal file
View file

@ -0,0 +1,21 @@
{
inputs,
pkgs,
lib,
...
}: {disableGPU ? false}:
(inputs.wrapper-manager.lib {
inherit pkgs;
modules = [
{
wrappers.marktext = {
basePackage = pkgs.marktext;
flags = [(lib.mkIf disableGPU "--disable-gpu")];
};
}
];
})
.config
.wrappers
.marktext
.wrapped