2020-10-01 15:46:04 -07:00
|
|
|
# modules/dev/shell.nix --- http://zsh.sourceforge.net/
|
2020-01-12 23:11:02 -08:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
2020-10-01 15:46:04 -07:00
|
|
|
{ config, options, lib, pkgs, my, ... }:
|
|
|
|
|
2020-04-06 20:29:11 -07:00
|
|
|
with lib;
|
2020-10-01 15:46:04 -07:00
|
|
|
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
|
|
|
};
|
|
|
|
|
2020-10-01 15:46:04 -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
|
|
|
}
|