Modularize dev/zsh.nix
This commit is contained in:
parent
09f389fc29
commit
6e596ebe14
|
@ -15,7 +15,7 @@
|
|||
./rust.nix
|
||||
./scala.nix
|
||||
./unity3d.nix
|
||||
# ./zsh.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
||||
options = {};
|
||||
|
|
|
@ -5,10 +5,20 @@
|
|||
# mortals to question the will of the ancient ones. If they want shell programs,
|
||||
# they get shell programs.
|
||||
|
||||
{ pkgs, ... }:
|
||||
{ config, options, lib, pkgs, ... }:
|
||||
with lib;
|
||||
{
|
||||
my.packages = with pkgs; [
|
||||
shellcheck
|
||||
my.zunit
|
||||
];
|
||||
options.modules.dev.zsh = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf config.modules.dev.zsh.enable {
|
||||
my.packages = with pkgs; [
|
||||
shellcheck
|
||||
my.zunit
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue