marleyos/modules/home/programs/neo/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
452 B
Nix

{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.marleyos.programs.neo;
in
{
options.marleyos.programs.neo.enable = mkEnableOption "neo";
config = mkIf cfg.enable {
home.packages = with pkgs; [
neo
];
programs.fish.functions = {
neo = {
wraps = "neo";
body = # fish
''
command neo --charset=ascii $argv
'';
};
};
};
}