2024-04-28 10:58:54 +08:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, config
|
|
|
|
, ... }: with lib; let
|
|
|
|
cfg = config.home.jetbrains;
|
|
|
|
in {
|
|
|
|
options.home.jetbrains = {
|
|
|
|
enable = mkEnableOption "jetbrains text editor";
|
|
|
|
idea = mkEnableOption "intellij idea";
|
|
|
|
clion = mkEnableOption "clion ide";
|
|
|
|
goland = mkEnableOption "goland ide" // { default = true; };
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
users.homeModules = [
|
|
|
|
# this module passes jetbrains configuration to home-manager
|
|
|
|
{ passthrough.jetbrains = cfg; }
|
|
|
|
];
|
|
|
|
|
|
|
|
users.home.persist.directories = mkIf cfg.enable [
|
2024-05-20 09:18:26 +08:00
|
|
|
"go"
|
2024-04-28 10:58:54 +08:00
|
|
|
".java/.userPrefs"
|
|
|
|
".config/JetBrains"
|
|
|
|
".local/share/JetBrains"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|