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