sneeuwvlok/modules/home/shell/toolset/bat/default.nix
2025-07-24 16:02:25 +02:00

19 lines
357 B
Nix

{ config, lib, pkgs, namespace, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.shell.toolset.bat;
in
{
options.${namespace}.shell.toolset.bat = {
enable = mkEnableOption "cat replacement";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [ bat ];
programs.bat = {
enable = true;
};
};
}