mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Disable gpu for electron apps with wrapper-manager
This commit is contained in:
parent
6626303217
commit
1290098798
8 changed files with 108 additions and 4 deletions
21
wrappers/marktext.nix
Normal file
21
wrappers/marktext.nix
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue