From 58bdc7f6c56fe04df8c1afba9673d40e96b4951c Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Thu, 22 Jun 2023 17:23:27 -0700 Subject: [PATCH] Added bat module Already had bat but I wanted to specify a specific theme. --- modules/apps/bat/default.nix | 23 +++++++++++++++++++++++ modules/suites/utils/default.nix | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 modules/apps/bat/default.nix diff --git a/modules/apps/bat/default.nix b/modules/apps/bat/default.nix new file mode 100644 index 0000000..23eab1d --- /dev/null +++ b/modules/apps/bat/default.nix @@ -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"; + }; + }; + }; +} diff --git a/modules/suites/utils/default.nix b/modules/suites/utils/default.nix index cb215cd..d249ad8 100644 --- a/modules/suites/utils/default.nix +++ b/modules/suites/utils/default.nix @@ -13,9 +13,9 @@ in { }; config = mkIf cfg.enable { + aa.apps.bat.enable = true; environment.systemPackages = with pkgs; [ alejandra - bat curl deploy-rs fd