marleyos/old/home/programs/figlet.nix

27 lines
450 B
Nix
Raw Normal View History

{
flake,
pkgs,
lib,
config,
...
}:
let
inherit (flake.inputs) self;
in
{
home.packages = with pkgs; [
# Could not get overlays or overrides to work.
(callPackage "${self}/derivations/figlet-with-fonts.nix" { })
];
programs.fish.functions = lib.mkIf config.programs.fish.enable {
figlet = {
wraps = "figlet";
body = # fish
''
command figlet -f "ANSI Shadow" $argv
'';
};
};
}