Added bat module
Already had bat but I wanted to specify a specific theme.
This commit is contained in:
parent
4284ed2a9d
commit
58bdc7f6c5
23
modules/apps/bat/default.nix
Normal file
23
modules/apps/bat/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.aa.apps.bat;
|
||||
in {
|
||||
options.aa.apps.bat = with types; {
|
||||
enable = mkEnableOption "bat";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
aa.home.extraOptions = {
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
config.theme = "gruvbox-dark";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -13,9 +13,9 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
aa.apps.bat.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
alejandra
|
||||
bat
|
||||
curl
|
||||
deploy-rs
|
||||
fd
|
||||
|
|
Loading…
Reference in a new issue