NixOS/home/modules/hyprland/wallust/alacritty.nix

53 lines
1.3 KiB
Nix
Raw Normal View History

{ config, lib, ... }:
let
cfg = config.profile.hyprland;
in
{
config = lib.mkIf (cfg.enable && config.programs.alacritty.enable) {
home.file.".config/wallust/templates/alacritty.toml".text =
# toml
''
[window]
opacity = {{alpha/100}}
[colors]
[colors.primary]
background = "{{background}}"
foreground = "{{foreground}}"
[colors.cursor]
text = "CellForeground"
cursor = "{{cursor}}"
[colors.bright]
black = "{{color0}}"
red = "{{color1}}"
green = "{{color2}}"
yellow = "{{color3}}"
blue = "{{color4}}"
magenta = "{{color5}}"
cyan = "{{color6}}"
white = "{{color7}}"
[colors.normal]
black = "{{color8}}"
red = "{{color9}}"
green = "{{color10}}"
yellow = "{{color11}}"
blue = "{{color12}}"
magenta = "{{color13}}"
cyan = "{{color14}}"
white = "{{color15}}"
'';
profile.hyprland.wallust.settings.templates.alacritty =
let
out = config.home.homeDirectory + "/.cache/wallust";
in
{
template = "alacritty.toml";
target = "${out}/alacritty.toml";
};
};
}