dotfiles/modules/editors/idea.nix

19 lines
353 B
Nix
Raw Normal View History

2021-11-28 17:01:32 +01:00
{ config, lib, pkgs, ... }:
2022-03-30 10:55:57 +02:00
with lib;
2022-03-23 12:41:04 +01:00
let cfg = config.modules.editors;
in {
2022-03-30 10:55:57 +02:00
options.modules.editors = {
idea = mkOption {
default = false;
type = types.bool;
example = true;
};
};
config = mkIf cfg.idea {
2022-03-23 12:41:04 +01:00
home-manager.users.moritz = {
home.packages = with pkgs; [ jdk jetbrains.idea-ultimate ];
};
2021-11-28 17:01:32 +01:00
};
}