2024-09-16 22:04:47 +02:00
|
|
|
{ config, pkgs, lib, ... }@inputs:
|
|
|
|
let
|
|
|
|
cfg = config.krop.devtools;
|
|
|
|
in {
|
|
|
|
options.krop.devtools = {
|
|
|
|
installIDE = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "Whether to install the ides";
|
|
|
|
};
|
|
|
|
installTools = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = true;
|
|
|
|
example = true;
|
|
|
|
description = "Whether to install the most used tools";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
config = let
|
|
|
|
ides = with pkgs; [
|
|
|
|
jetbrains.pycharm-professional
|
|
|
|
zed-editor
|
2024-09-18 14:28:02 +02:00
|
|
|
vscodium
|
2024-09-16 22:04:47 +02:00
|
|
|
];
|
|
|
|
languages = with pkgs; [
|
|
|
|
python3
|
|
|
|
python311
|
|
|
|
python310
|
2024-09-18 08:43:52 +02:00
|
|
|
poetry
|
2024-09-16 22:04:47 +02:00
|
|
|
];
|
|
|
|
tools = with pkgs; [
|
|
|
|
lazygit
|
|
|
|
lazydocker
|
|
|
|
micro-with-wl-clipboard
|
|
|
|
albert
|
2024-09-18 10:32:27 +02:00
|
|
|
openssl_3_3
|
2024-09-16 22:04:47 +02:00
|
|
|
];
|
|
|
|
in {
|
|
|
|
environment.systemPackages = languages
|
|
|
|
++ (lib.optionals cfg.installIDE ides)
|
|
|
|
++ (lib.optionals cfg.installTools tools);
|
|
|
|
};
|
|
|
|
}
|