19 lines
352 B
Nix
19 lines
352 B
Nix
{ config, lib, pkgs, user, ... }:
|
|
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;
|
|
};
|
|
};
|
|
}
|