feat(alacritty): Catppuccin -> Rose Pine
This commit is contained in:
parent
2434f0038f
commit
b79da5a923
2 changed files with 17 additions and 12 deletions
|
@ -4,13 +4,13 @@
|
|||
"type": "Git",
|
||||
"repository": {
|
||||
"type": "GitHub",
|
||||
"owner": "catppuccin",
|
||||
"owner": "rose-pine",
|
||||
"repo": "alacritty"
|
||||
},
|
||||
"branch": "main",
|
||||
"revision": "343cf8d65459ac8f6449cc98dd3648bcbd7e3766",
|
||||
"url": "https://github.com/catppuccin/alacritty/archive/343cf8d65459ac8f6449cc98dd3648bcbd7e3766.tar.gz",
|
||||
"hash": "1nh29kkviqp0mz0w7cjmxcp5lgmd4hg5r67fzrvgkg9wgcfidig4"
|
||||
"revision": "3c3e36eb5225b0eb6f1aa989f9d9e783a5b47a83",
|
||||
"url": "https://github.com/rose-pine/alacritty/archive/3c3e36eb5225b0eb6f1aa989f9d9e783a5b47a83.tar.gz",
|
||||
"hash": "1b9ff2a1mmhagmajvq49p2mrb22skdcq3hx6d6pjgk2vxvhhfkrd"
|
||||
},
|
||||
"bat": {
|
||||
"type": "Git",
|
||||
|
|
|
@ -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 {
|
||||
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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue