marleyos/modules/home/programs/figlet/default.nix
punkfairie 9d38846b58
fix(figlet): Overlay -> custom package
Still can't get the overlay to work :(
2024-11-17 16:17:57 -08:00

30 lines
531 B
Nix

{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.marleyos.programs.figlet;
in
{
options.marleyos.programs.figlet.enable = mkEnableOption "figlet";
config = mkIf cfg.enable {
home.packages = with pkgs; [
marleyos.figlet-xero-fonts
];
programs.fish.functions = lib.mkIf config.programs.fish.enable {
figlet = {
wraps = "figlet";
body = # fish
''
command figlet -f "ANSI Shadow" $argv
'';
};
};
};
}