export base16Split from colors module
This commit is contained in:
parent
df75571c56
commit
b13796a5a2
1 changed files with 7 additions and 0 deletions
|
@ -41,6 +41,7 @@ let
|
|||
mustache = scheme: name: src:
|
||||
pkgs.stdenv.mkDerivation (
|
||||
{
|
||||
# TODO add template name
|
||||
name = lib.strings.sanitizeDerivationName name;
|
||||
inherit src;
|
||||
data = pkgs.writeText "${name}-data" (builtins.toJSON scheme);
|
||||
|
@ -74,6 +75,11 @@ in
|
|||
type = types.attrsOf (types.attrsOf types.int);
|
||||
};
|
||||
|
||||
base16Split = mkOption {
|
||||
readOnly = true;
|
||||
type = types.attrsOf (types.attrsOf types.str);
|
||||
};
|
||||
|
||||
base16 = mkOption {
|
||||
readOnly = true;
|
||||
type = types.attrsOf types.str;
|
||||
|
@ -197,6 +203,7 @@ in
|
|||
# Read only utility attributes
|
||||
colors.base16 = cfg.favColors.base16;
|
||||
colors.base16Rgb = builtins.mapAttrs hexToRgb cfg.favColors.base16;
|
||||
colors.base16Split = builtins.mapAttrs splitHex cfg.favColors.base16;
|
||||
|
||||
# Element
|
||||
xdg.configFile."Riot/config.json".text = builtins.toJSON elementConfig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue