added more options
This commit is contained in:
parent
c4153ca78b
commit
5c725f2de9
2 changed files with 29 additions and 1 deletions
|
@ -20,7 +20,15 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
install-pycharm = true;
|
install-pycharm = true;
|
||||||
};
|
};
|
||||||
python.install-older = true;
|
python = {
|
||||||
|
enable = true;
|
||||||
|
install-older = true;
|
||||||
|
};
|
||||||
|
cli = {
|
||||||
|
enable = true;
|
||||||
|
install-k8s-tools = true;
|
||||||
|
install-cloud-cli = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.configure-mic-leds = rec {
|
systemd.services.configure-mic-leds = rec {
|
||||||
|
|
|
@ -21,6 +21,18 @@ in
|
||||||
example = true;
|
example = true;
|
||||||
description = "Whether to install cli editors";
|
description = "Whether to install cli editors";
|
||||||
};
|
};
|
||||||
|
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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
|
@ -34,6 +46,14 @@ in
|
||||||
pkgs.lazygit
|
pkgs.lazygit
|
||||||
pkgs.lazydocker
|
pkgs.lazydocker
|
||||||
pkgs.micro-with-wl-clipboard
|
pkgs.micro-with-wl-clipboard
|
||||||
|
]
|
||||||
|
++ lib.optionals cfg.install-k8s-tools [
|
||||||
|
pkgs.k9s
|
||||||
|
pkgs.kubectl
|
||||||
|
pkgs.kubectx
|
||||||
|
]
|
||||||
|
++ lib.optionals cfg.install-cloud-cli [
|
||||||
|
pkgs.oci-cli
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue