feat(home-manager): add support for aerc (#338)
This commit is contained in:
parent
4e08dd54fb
commit
96cf8b4a05
4 changed files with 37 additions and 0 deletions
|
@ -1,5 +1,17 @@
|
||||||
{
|
{
|
||||||
"pins": {
|
"pins": {
|
||||||
|
"aerc": {
|
||||||
|
"type": "Git",
|
||||||
|
"repository": {
|
||||||
|
"type": "GitHub",
|
||||||
|
"owner": "catppuccin",
|
||||||
|
"repo": "aerc"
|
||||||
|
},
|
||||||
|
"branch": "main",
|
||||||
|
"revision": "ca404a9f2d125ef12db40db663d43c9d94116a05",
|
||||||
|
"url": "https://github.com/catppuccin/aerc/archive/ca404a9f2d125ef12db40db663d43c9d94116a05.tar.gz",
|
||||||
|
"hash": "0q9a818rwsqx5kvln5zzfan54xaw9yqbbm5hjbrwzdl5q8g28qir"
|
||||||
|
},
|
||||||
"alacritty": {
|
"alacritty": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
23
modules/home-manager/aerc.nix
Normal file
23
modules/home-manager/aerc.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (config.catppuccin) sources;
|
||||||
|
cfg = config.programs.aerc.catppuccin;
|
||||||
|
enable = cfg.enable && config.programs.aerc.enable;
|
||||||
|
themeName = "catppuccin-${cfg.flavor}";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.programs.aerc.catppuccin = lib.ctp.mkCatppuccinOpt { name = "aerc"; };
|
||||||
|
|
||||||
|
config = lib.mkIf enable {
|
||||||
|
programs.aerc = {
|
||||||
|
stylesets.${themeName} = builtins.readFile "${sources.aerc}/dist/${themeName}";
|
||||||
|
extraConfig = {
|
||||||
|
ui = {
|
||||||
|
styleset-name = themeName;
|
||||||
|
border-char-vertical = "│";
|
||||||
|
border-char-horizontal = "─";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
[
|
[
|
||||||
|
./aerc.nix
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./bat.nix
|
./bat.nix
|
||||||
./bottom.nix
|
./bottom.nix
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
i18n.inputMethod.enabled = "fcitx5";
|
i18n.inputMethod.enabled = "fcitx5";
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
aerc.enable = true;
|
||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
bat.enable = true;
|
bat.enable = true;
|
||||||
bottom.enable = true;
|
bottom.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue