marleyos/modules/home/programs/figlet/default.nix
punkfairie e4facfab9a
fix(home): Remove unneccesary mkIfs
Don't need to check if the module is enabled for settings within that
module.... they won't be applied if it's not enabled by default
2024-11-23 15:15:30 -08:00

30 lines
494 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 = {
figlet = {
wraps = "figlet";
body = # fish
''
command figlet -f "ANSI Shadow" $argv
'';
};
};
};
}