mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
bahaghari/modules/tinted-theming: update builder module
This commit is contained in:
parent
f4b1db09f3
commit
b74d53ed09
@ -1,28 +1,25 @@
|
|||||||
# A Bahaghari module for interacting with the Tinted Theming builder.
|
# A Bahaghari module for interacting with the Tinted Theming builder.
|
||||||
{ config, lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.bahaghari;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
options.bahaghari.tinted-theming.builder = {
|
options.bahaghari.tinted-theming.builder = {
|
||||||
package = lib.mkPackageOption pkgs "base16-builder-go" { };
|
script = lib.mkOption {
|
||||||
|
|
||||||
extraArgs = lib.mkOption {
|
|
||||||
type = with lib.types; functionTo str;
|
type = with lib.types; functionTo str;
|
||||||
default = args: ''
|
default = args: ''
|
||||||
${lib.getExe' pkgs.base16-builder-go "base16-builder-go"} \
|
${lib.getExe' pkgs.base16-builder-go "base16-builder-go"} \
|
||||||
-schemes-dir ${lib.escapeShellArg args.schemesDir} \
|
-schemes-dir ${lib.escapeShellArg args.schemesDir} \
|
||||||
-template-dir ${lib.escapeShell args.template}
|
-template-dir ${lib.escapeShell args.templateDir}
|
||||||
'';
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
A function returning a script to be applied per-template. The
|
A function returning a script to be applied per-template. The
|
||||||
function parameter is an attribute set with the following values:
|
function parameter is an attribute set with the following values:
|
||||||
|
|
||||||
* `template` contains the path to the template.
|
* `templateDir` contains the path to the template.
|
||||||
* `name` is the attribute name of the template.
|
|
||||||
* `schemesDir` is a path containing all of the schemes as a YAML file
|
* `schemesDir` is a path containing all of the schemes as a YAML file
|
||||||
(technically a JSON file).
|
(technically a JSON file).
|
||||||
|
|
||||||
|
This is primarily used for generating templates with
|
||||||
|
`bahaghariUtils.tinted-theming.generateOutputFromSchemes` function.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user