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

28 lines
432 B
Nix
Raw Normal View History

2024-11-16 11:27:44 -08:00
{
lib,
config,
pkgs,
...
}: let
cfg = config.marleyos.programs.neo;
in {
options.marleyos.programs.neo.enable = lib.mkEnableOption "neo";
2024-11-16 11:27:44 -08:00
config = lib.mkIf cfg.enable {
2024-11-16 11:27:44 -08:00
home.packages = with pkgs; [
neo
];
programs.fish.functions = {
2024-11-16 11:27:44 -08:00
neo = {
wraps = "neo";
body =
# fish
2024-11-16 11:27:44 -08:00
''
command neo --charset=ascii $argv
'';
};
};
};
}