nix-config/modules/dev/default.nix

42 lines
1 KiB
Nix
Raw Normal View History

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
vscode
];
languages = with pkgs; [
python3
python311
python310
];
tools = with pkgs; [
lazygit
lazydocker
micro-with-wl-clipboard
albert
];
in {
environment.systemPackages = languages
++ (lib.optionals cfg.installIDE ides)
++ (lib.optionals cfg.installTools tools);
};
}