0ebf33fe97
* chore: update dev flake inputs Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/33a20182e3164f451b6a4ac2ecadcab5c2c36703' (2024-04-23) → 'github:nix-community/home-manager/0c5704eceefcb7bb238a958f532a86e3b59d76db' (2024-04-25) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/6143fc5eeb9c4f00163267708e26191d1e918932' (2024-04-21) → 'github:NixOS/nixpkgs/572af610f6151fd41c212f897c71f7056e3fb518' (2024-04-23) * Update foot: ee5549af72ab78520ac2aa1c671bf5c2d347c8ca → 64ca6fb7a3e1e6867d76d6c0763e0b2d83fc4f01 bat: b8134f01b0ac176f1cf2a7043a5abf5a1a29457b → d714cc1d358ea51bfc02550dabab693f70cccea0 * chore(home-manager): use new theme path for foot --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: seth <getchoo@tuta.io>
15 lines
358 B
Nix
15 lines
358 B
Nix
{ config
|
|
, lib
|
|
, sources
|
|
, ...
|
|
}:
|
|
let
|
|
cfg = config.programs.foot.catppuccin;
|
|
enable = cfg.enable && config.programs.foot.enable;
|
|
theme = lib.ctp.fromINI (sources.foot + "/themes/catppuccin-${cfg.flavour}.ini");
|
|
in
|
|
{
|
|
options.programs.foot.catppuccin = lib.ctp.mkCatppuccinOpt "foot";
|
|
|
|
config.programs.foot = lib.mkIf enable { settings = theme; };
|
|
}
|