about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/programs/bash/blesh.nix
blob: 8fa51bef774435031913820e3e0265790c6b5115 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ lib, config, pkgs, ... }:
with lib;
let
  cfg = config.programs.bash.blesh;
in {
  options = {
    programs.bash.blesh.enable = mkEnableOption (mdDoc "blesh");
  };

  config = mkIf cfg.enable {
    programs.bash.interactiveShellInit = mkBefore ''
      source ${pkgs.blesh}/share/blesh/ble.sh
    '';
  };
  meta.maintainers = with maintainers; [ laalsaas ];
}