nixos-config/modules/themes.nix
2020-08-15 19:36:16 +04:00

63 lines
1.6 KiB
Nix

{ config, lib, pkgs, inputs, ... }:
with lib;
# let
# fromBase16 = base16scheme:
# builtins.mapAttrs (_: v: "#" + v) {
# bg = base00-hex;
# # fg = base07-hex;
# fg = base05-hex;
# };
# in
{
# options = {
# themes = {
# colors = mkOption {
# description =
# "Set of colors from which the themes for various applications will be generated";
# type = with types;
# submodule {
# options = let
# colors = (builtins.genList (x: (toString x) ) 15);
# in {
# bg = types.str;
# fg = types.str;
# } // builtins.listToAttrs (builtins.map (x: {
# name = "base${x}";
# value = types.str;
# }) colors);
# };
# };
# };
# };
config.themes.base16 = {
enable = true;
customScheme = {
enable = true;
path = "${inputs.base16-horizon-scheme}/horizon-dark.yaml";
};
# scheme = "gruvbox";
# variant = "gruvbox-dark-medium";
extraParams = {
font = "IBM Plex Sans";
fontMono = "IBM Plex Mono";
fontSerif = "IBM Plex Serif";
powerlineFont = "IBM Plex Mono for Powerline";
fallbackFont = "Roboto";
fallbackFontMono = "Roboto Mono";
fallbackFontSerif = "Roboto Slab";
iconFont = "Font Awesome 5 Free";
fallbackIcon = "Material Icons";
normalFontSize = "12";
headerFontSize = "14";
smallFontSize = "11";
microFontSize = "10";
minimalFontSize = "8";
iconsTheme = "Papirus-Dark";
};
};
}