From 960c950b43fb2a9c33af9a23e7569e30c00dabbe Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Sun, 21 Apr 2024 17:54:18 +0200 Subject: bat: move to module --- modules/hm/sils/bat.nix | 21 +++++++++++++++++++++ modules/hm/sils/default.nix | 1 + 2 files changed, 22 insertions(+) create mode 100644 modules/hm/sils/bat.nix (limited to 'modules') diff --git a/modules/hm/sils/bat.nix b/modules/hm/sils/bat.nix new file mode 100644 index 0000000..5f7b967 --- /dev/null +++ b/modules/hm/sils/bat.nix @@ -0,0 +1,21 @@ +{ + config, + lib, + pkgs, + ... +}: let + cfg = config.sils.bat; +in { + options.sils.bat.enable = lib.mkEnableOption "bat"; + config = lib.mkIf cfg.enable { + programs.bat = { + enable = true; + extraPackages = with pkgs.bat-extras; [ + batdiff + batman + batgrep + batwatch + ]; + }; + }; +} diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix index c298715..fc0893f 100644 --- a/modules/hm/sils/default.nix +++ b/modules/hm/sils/default.nix @@ -1,5 +1,6 @@ {...}: { imports = [ + ./bat.nix ./firefox ./jameica.nix ./mail.nix -- cgit 1.4.1