39 lines
720 B
Nix
39 lines
720 B
Nix
|
{
|
||
|
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
|
||
|
];
|
||
|
};
|
||
|
}
|