1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 20:29:47 +01:00

bat: add extraPackages option

The bat program has a few additional packages in Nixpkgs, allow for
these to be specified via Home Manager.
This commit is contained in:
Nicholas Sielicki 2022-11-05 18:57:15 -05:00 committed by Robert Helgesson
parent fa671f1795
commit 50c9bccb6a
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -30,6 +30,16 @@ in {
'';
};
extraPackages = mkOption {
type = types.listOf types.package;
default = [ ];
example = literalExpression
"with pkgs.bat-extras; [ batdiff batman batgrep batwatch ];";
description = ''
Additional bat packages to install.
'';
};
themes = mkOption {
type = types.attrsOf types.lines;
default = { };
@ -51,7 +61,7 @@ in {
};
config = mkIf cfg.enable {
home.packages = [ pkgs.bat ];
home.packages = [ pkgs.bat ] ++ cfg.extraPackages;
xdg.configFile = mkMerge ([{
"bat/config" =