marleyos/modules/home/programs/figlet/default.nix

28 lines
474 B
Nix
Raw Normal View History

2024-11-16 14:57:04 -08:00
{
lib,
config,
pkgs,
...
}: let
cfg = config.marleyos.programs.figlet;
in {
options.marleyos.programs.figlet.enable = lib.mkEnableOption "figlet";
2024-11-16 14:57:04 -08:00
config = lib.mkIf cfg.enable {
2024-11-16 14:57:04 -08:00
home.packages = with pkgs; [
marleyos.figlet-xero-fonts
2024-11-16 14:57:04 -08:00
];
programs.fish.functions = {
2024-11-16 14:57:04 -08:00
figlet = {
wraps = "figlet";
body =
# fish
2024-11-16 14:57:04 -08:00
''
command figlet -f "ANSI Shadow" $argv
'';
};
};
};
}