Files
NixOS/modules/dev/sh.nix
2024-06-07 17:07:21 -06:00

19 lines
375 B
Nix

{
config,
lib,
pkgs,
...
}:
{
options.my.dev.sh.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.dev.sh.enable {
users.users.jawz.packages =
(with pkgs; [
bashdb # autocomplete
shellcheck # linting
shfmt # a shell parser and formatter
])
++ (with pkgs.nodePackages; [ bash-language-server ]);
};
}