25 lines
373 B
Nix
25 lines
373 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
feature = "dev";
|
|
in
|
|
{
|
|
config = lib.mkIf config.${feature}.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
# keep-sorted start
|
|
bacon
|
|
cargo-info
|
|
devenv
|
|
just
|
|
mask
|
|
rusty-man
|
|
# keep-sorted end
|
|
];
|
|
};
|
|
|
|
options.${feature}.enable = lib.mkEnableOption "enables ${feature}";
|
|
}
|