helm/modules/dev/shell.nix

24 lines
590 B
Nix
Raw Permalink Normal View History

# modules/dev/shell.nix --- http://zsh.sourceforge.net/
#
# Shell script programmers are strange beasts. Writing programs in a language
# that wasn't intended as a programming language. Alas, it is not for us mere
# mortals to question the will of the ancient ones. If they want shell programs,
# they get shell programs.
2020-01-12 16:49:13 -08:00
{ config, options, lib, pkgs, my, ... }:
2020-04-06 20:29:11 -07:00
with lib;
with lib.my;
let cfg = config.modules.dev.shell;
in {
options.modules.dev.shell = {
enable = mkBoolOpt false;
2020-04-06 20:29:11 -07:00
};
config = mkIf cfg.enable {
user.packages = with pkgs; [
2020-04-06 20:29:11 -07:00
shellcheck
];
};
2020-01-12 16:49:13 -08:00
}