2024-11-19 10:31:29 +01:00
|
|
|
{
|
|
|
|
options,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-03-21 15:00:36 +01:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
with lib.metacfg;
|
2024-11-19 10:31:29 +01:00
|
|
|
let
|
|
|
|
cfg = config.metacfg.tools.jetbrains;
|
2024-03-21 15:00:36 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options.metacfg.tools.jetbrains = with types; {
|
|
|
|
enable = mkBoolOpt false "Whether or not to enable jetbrains.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-11-19 10:31:29 +01:00
|
|
|
home.sessionPath = [ "$HOME/.local/share/JetBrains/Toolbox/scripts" ];
|
2024-03-21 15:00:36 +01:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
jetbrains-toolbox
|
2024-11-19 10:31:29 +01:00
|
|
|
(pkgs.nerdfonts.override {
|
|
|
|
fonts = [
|
|
|
|
"FiraCode"
|
|
|
|
"DroidSansMono"
|
|
|
|
"JetBrainsMono"
|
|
|
|
];
|
|
|
|
})
|
2024-03-21 15:00:36 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|