nixpkgs-suyu/nixos/modules/programs/bash/blesh.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
364 B
Nix
Raw Normal View History

2022-12-06 21:23:25 +01:00
{ 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
2022-12-06 21:23:25 +01:00
'';
};
meta.maintainers = with maintainers; [ laalsaas ];
}