0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

bash-my-aws: init at 20191231

Create bma-init
This commit is contained in:
Tom Bereknyei 2020-01-01 12:10:47 -05:00 committed by Tom Bereknyei
parent 5a3c1eda46
commit e5208af780
4 changed files with 100 additions and 0 deletions

View file

@ -96,6 +96,7 @@
./programs/atop.nix
./programs/autojump.nix
./programs/bash/bash.nix
./programs/bash-my-aws.nix
./programs/bcc.nix
./programs/browserpass.nix
./programs/captive-browser.nix

View file

@ -0,0 +1,25 @@
{ config, pkgs, lib, ... }:
with lib;
let
prg = config.programs;
cfg = prg.bash-my-aws;
initScript = ''
eval $(${pkgs.bash-my-aws}/bin/bma-init)
'';
in
{
options = {
programs.bash-my-aws = {
enable = mkEnableOption "bash-my-aws";
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ bash-my-aws ];
programs.bash.interactiveShellInit = initScript;
};
}