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:
parent
fa671f1795
commit
50c9bccb6a
1 changed files with 11 additions and 1 deletions
|
@ -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" =
|
||||
|
|
Loading…
Reference in a new issue