Modularize dev/zsh.nix

This commit is contained in:
Henrik Lissner 2020-04-06 23:29:11 -04:00
parent 09f389fc29
commit 6e596ebe14
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 16 additions and 6 deletions

View file

@ -15,7 +15,7 @@
./rust.nix ./rust.nix
./scala.nix ./scala.nix
./unity3d.nix ./unity3d.nix
# ./zsh.nix ./zsh.nix
]; ];
options = {}; options = {};

View file

@ -5,10 +5,20 @@
# mortals to question the will of the ancient ones. If they want shell programs, # mortals to question the will of the ancient ones. If they want shell programs,
# they get shell programs. # they get shell programs.
{ pkgs, ... }: { config, options, lib, pkgs, ... }:
with lib;
{ {
my.packages = with pkgs; [ options.modules.dev.zsh = {
shellcheck enable = mkOption {
my.zunit type = types.bool;
]; default = false;
};
};
config = mkIf config.modules.dev.zsh.enable {
my.packages = with pkgs; [
shellcheck
my.zunit
];
};
} }