feat(home-manager): add support for aerc (#338)

This commit is contained in:
Ben Brown 2024-10-08 18:10:14 +01:00 committed by GitHub
parent 4e08dd54fb
commit 96cf8b4a05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 37 additions and 0 deletions

View file

@ -1,5 +1,17 @@
{
"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": {
"type": "Git",
"repository": {

View 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 = "";
};
};
};
};
}

View file

@ -1,4 +1,5 @@
[
./aerc.nix
./alacritty.nix
./bat.nix
./bottom.nix

View file

@ -17,6 +17,7 @@
i18n.inputMethod.enabled = "fcitx5";
programs = {
aerc.enable = true;
alacritty.enable = true;
bat.enable = true;
bottom.enable = true;