3de3278dc3
* chore: update dev flake inputs Flake lock file updates: • Updated input 'call-flake': 'github:divnix/call-flake/7d993ee93bd35a9e6574ec76d54b7d44087495ad' (2023-11-05) → 'github:divnix/call-flake/4ff3ef19aee2c030cf0986508711ba19ba006375' (2024-01-07) • Updated input 'home-manager': 'github:nix-community/home-manager/6a8444467c83c961e2f5ff64fb4f422e303c98d3' (2023-11-07) → 'github:nix-community/home-manager/93e804e7f8a1eb88bde6117cd5046501e66aa4bd' (2024-01-11) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/85f1ba3e51676fa8cc604a3d863d729026a6b8eb' (2023-11-04) → 'github:NixOS/nixpkgs/317484b1ead87b9c1b8ac5261a8d2dd748a0492d' (2024-01-08) * chore: update nvfetch sources * ci: run test-vm on all lockfile updates * fix(home-manager): use toml files for alacritty * ci: fix typo in nvfetcher commit messages --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: seth <getchoo@tuta.io>
18 lines
389 B
Nix
18 lines
389 B
Nix
{ config
|
|
, lib
|
|
, sources
|
|
, ...
|
|
}:
|
|
let
|
|
inherit (lib) ctp;
|
|
cfg = config.programs.alacritty.catppuccin;
|
|
enable = cfg.enable && config.programs.alacritty.enable;
|
|
in
|
|
{
|
|
options.programs.alacritty.catppuccin =
|
|
ctp.mkCatppuccinOpt "alacritty";
|
|
|
|
config = lib.mkIf enable {
|
|
programs.alacritty.settings = lib.importTOML "${sources.alacritty}/catppuccin-${cfg.flavour}.toml";
|
|
};
|
|
}
|