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