2024-11-16 22:57:04 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
2025-01-14 05:05:10 +00:00
|
|
|
}: let
|
2024-11-17 06:34:40 +00:00
|
|
|
cfg = config.marleyos.programs.figlet;
|
2025-01-14 05:05:10 +00:00
|
|
|
in {
|
|
|
|
options.marleyos.programs.figlet.enable = lib.mkEnableOption "figlet";
|
2024-11-16 22:57:04 +00:00
|
|
|
|
2025-01-14 05:05:10 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-11-16 22:57:04 +00:00
|
|
|
home.packages = with pkgs; [
|
2024-11-18 00:17:57 +00:00
|
|
|
marleyos.figlet-xero-fonts
|
2024-11-16 22:57:04 +00:00
|
|
|
];
|
|
|
|
|
2024-11-23 23:15:30 +00:00
|
|
|
programs.fish.functions = {
|
2024-11-16 22:57:04 +00:00
|
|
|
figlet = {
|
|
|
|
wraps = "figlet";
|
2025-01-14 05:05:10 +00:00
|
|
|
body =
|
|
|
|
# fish
|
2024-11-16 22:57:04 +00:00
|
|
|
''
|
|
|
|
command figlet -f "ANSI Shadow" $argv
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|