nix-config/nixosModules/dev/cli.nix

39 lines
720 B
Nix
Raw Normal View History

2024-09-24 10:23:11 +02:00
{
config,
pkgs,
lib,
...
}@inputs:
let
cfg = config.krop.cli;
in
{
options.krop.cli = {
enable = lib.mkOption {
type = lib.types.bool;
default = true;
example = true;
description = "Whether to install the most used tools";
};
install-editors = lib.mkOption {
type = lib.types.bool;
default = true;
example = true;
description = "Whether to install cli editors";
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages =
with pkgs;
[
openssl_3_3
dig
]
++ lib.optionals cfg.install-editors [
pkgs.lazygit
pkgs.lazydocker
pkgs.micro-with-wl-clipboard
];
};
}