diff options
Diffstat (limited to '')
-rw-r--r-- | modules/common/bat.nix | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/common/bat.nix b/modules/common/bat.nix index 89444d9..a95d67d 100644 --- a/modules/common/bat.nix +++ b/modules/common/bat.nix @@ -1,11 +1,9 @@ -{ - config, - lib, - ... -}: -with lib; let +{ config, lib, ... }: +with lib; +let cfg = config.nixfiles.modules.bat; -in { +in +{ options.nixfiles.modules.bat.enable = mkEnableOption "bat, an alternative to cat"; config = mkIf cfg.enable { |