mirror of
https://github.com/danth/stylix
synced 2024-11-26 14:10:22 +00:00
50dcc46fe6
Fixes #35 and #59 Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
31 lines
734 B
Nix
31 lines
734 B
Nix
{pkgs, config, lib, ... }:
|
|
|
|
with config.stylix.fonts;
|
|
|
|
let
|
|
themeFile = config.lib.stylix.colors {
|
|
templateRepo = pkgs.fetchFromGitHub {
|
|
owner = "aarowill";
|
|
repo = "base16-alacritty";
|
|
rev = "914727e48ebf3eab1574e23ca0db0ecd0e5fe9d0";
|
|
sha256 = "sha256-oDsuiKx8gt+Ov7hZ9PibIQtE81IRSLO+n5N99WeiK34=";
|
|
};
|
|
};
|
|
in
|
|
{
|
|
options.stylix.targets.alacritty.enable =
|
|
config.lib.stylix.mkEnableTarget "Alacritty" true;
|
|
|
|
config = lib.mkIf config.stylix.targets.alacritty.enable {
|
|
programs.alacritty.settings = {
|
|
font = {
|
|
normal = {
|
|
family = monospace.name;
|
|
style = "Regular";
|
|
};
|
|
size = sizes.terminal;
|
|
};
|
|
import = [ themeFile ];
|
|
};
|
|
};
|
|
}
|