mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 00:04:11 +00:00
17 lines
364 B
Nix
17 lines
364 B
Nix
{ 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 ];
|
|
}
|