feat(alacritty): Catppuccin -> Rose Pine

This commit is contained in:
punkfairie 2024-10-19 11:15:31 -07:00
parent 2434f0038f
commit b79da5a923
Signed by: punkfairie
GPG key ID: 01823C057725C266
2 changed files with 17 additions and 12 deletions

View file

@ -4,13 +4,13 @@
"type": "Git", "type": "Git",
"repository": { "repository": {
"type": "GitHub", "type": "GitHub",
"owner": "catppuccin", "owner": "rose-pine",
"repo": "alacritty" "repo": "alacritty"
}, },
"branch": "main", "branch": "main",
"revision": "343cf8d65459ac8f6449cc98dd3648bcbd7e3766", "revision": "3c3e36eb5225b0eb6f1aa989f9d9e783a5b47a83",
"url": "https://github.com/catppuccin/alacritty/archive/343cf8d65459ac8f6449cc98dd3648bcbd7e3766.tar.gz", "url": "https://github.com/rose-pine/alacritty/archive/3c3e36eb5225b0eb6f1aa989f9d9e783a5b47a83.tar.gz",
"hash": "1nh29kkviqp0mz0w7cjmxcp5lgmd4hg5r67fzrvgkg9wgcfidig4" "hash": "1b9ff2a1mmhagmajvq49p2mrb22skdcq3hx6d6pjgk2vxvhhfkrd"
}, },
"bat": { "bat": {
"type": "Git", "type": "Git",

View file

@ -1,13 +1,18 @@
{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.programs.alacritty.catppuccin;
enable = cfg.enable && config.programs.alacritty.enable;
in
{ {
options.programs.alacritty.catppuccin = lib.ctp.mkCatppuccinOpt { name = "alacritty"; }; config,
lib,
...
}: let
inherit (config.rose-pine) sources;
cfg = config.programs.alacritty.rose-pine;
enable = cfg.enable && config.programs.alacritty.enable;
in {
options.programs.alacritty.rose-pine = lib.rp.mkRosePineOpt {name = "alacritty";};
config = lib.mkIf enable { config = lib.mkIf enable {
programs.alacritty.settings = lib.importTOML "${sources.alacritty}/catppuccin-${cfg.flavor}.toml"; programs.alacritty.settings =
if (cfg.flavor == "main")
then lib.importTOML "${sources.alacritty}/dist/rose-pine.toml"
else lib.importTOML "${sources.alacritty}/dist/rose-pine-${cfg.flavor}.toml";
}; };
} }