2024-09-24 10:23:11 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
2024-11-11 19:35:08 +01:00
|
|
|
}:
|
2024-09-24 10:23:11 +02:00
|
|
|
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";
|
|
|
|
};
|
2024-09-26 12:25:44 +02:00
|
|
|
install-k8s-tools = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "Whether to install k8s tools";
|
|
|
|
};
|
|
|
|
install-cloud-cli = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "Whether to install cloud providers CLI clients";
|
|
|
|
};
|
2024-09-24 10:23:11 +02:00
|
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages =
|
|
|
|
with pkgs;
|
|
|
|
[
|
2025-02-24 23:08:52 +01:00
|
|
|
openssl
|
2024-09-24 10:23:11 +02:00
|
|
|
dig
|
2024-09-25 21:39:12 +02:00
|
|
|
wl-clipboard
|
2025-02-11 10:35:08 +01:00
|
|
|
# bitwarden-cli # - https://github.com/NixOS/nixpkgs/issues/380227
|
2024-09-27 08:57:00 +02:00
|
|
|
direnv
|
|
|
|
nix-direnv
|
2024-10-07 23:17:58 +02:00
|
|
|
gettext
|
2024-10-12 17:31:12 +02:00
|
|
|
file
|
2024-09-24 10:23:11 +02:00
|
|
|
]
|
|
|
|
++ lib.optionals cfg.install-editors [
|
|
|
|
pkgs.lazygit
|
|
|
|
pkgs.lazydocker
|
|
|
|
pkgs.micro-with-wl-clipboard
|
2024-09-26 12:25:44 +02:00
|
|
|
]
|
|
|
|
++ lib.optionals cfg.install-k8s-tools [
|
|
|
|
pkgs.k9s
|
|
|
|
pkgs.kubectl
|
|
|
|
pkgs.kubectx
|
2024-10-06 22:41:31 +02:00
|
|
|
pkgs.minikube
|
2024-10-07 14:37:30 +02:00
|
|
|
pkgs.kind
|
2025-02-13 12:23:48 +01:00
|
|
|
pkgs.argocd
|
2024-09-26 12:25:44 +02:00
|
|
|
]
|
|
|
|
++ lib.optionals cfg.install-cloud-cli [
|
|
|
|
pkgs.oci-cli
|
2024-09-24 10:23:11 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|