a75c64d04a
This puts a hard dependency on 20.09, but that's to be expected.
24 lines
590 B
Nix
24 lines
590 B
Nix
# 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.
|
|
|
|
{ config, options, lib, pkgs, my, ... }:
|
|
|
|
with lib;
|
|
with lib.my;
|
|
let cfg = config.modules.dev.shell;
|
|
in {
|
|
options.modules.dev.shell = {
|
|
enable = mkBoolOpt false;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
user.packages = with pkgs; [
|
|
shellcheck
|
|
];
|
|
};
|
|
}
|