mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Use a template for the wrappers
This commit is contained in:
parent
225b15f303
commit
eb89e60c02
4 changed files with 29 additions and 52 deletions
|
|
@ -1,21 +1,10 @@
|
|||
{
|
||||
inputs,
|
||||
assembleWrapper,
|
||||
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
|
||||
assembleWrapper "marktext" {
|
||||
basePackage = pkgs.marktext;
|
||||
flags = [(lib.mkIf disableGPU "--disable-gpu")];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue