xin/configs/develop.nix
2022-08-25 12:21:35 -06:00

16 lines
397 B
Nix

{ config, lib, pkgs, ... }:
with lib; {
options = {
jetbrains = { enable = mkEnableOption "Install JetBrains editors"; };
};
config = mkMerge [
(mkIf config.jetbrains.enable {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ "idea-ultimate" ];
environment.systemPackages = with pkgs; [ jetbrains.idea-ultimate sshfs ];
})
];
}