xin/configs/develop.nix

21 lines
399 B
Nix
Raw Normal View History

2023-07-11 09:12:50 -06:00
{
config,
lib,
pkgs,
...
}:
2022-08-25 12:21:35 -06:00
with lib; {
options = {
2023-07-11 09:12:50 -06:00
jetbrains = {enable = mkEnableOption "Install JetBrains editors";};
2022-08-25 12:21:35 -06:00
};
config = mkMerge [
(mkIf config.jetbrains.enable {
nixpkgs.config.allowUnfreePredicate = pkg:
2023-07-11 09:12:50 -06:00
builtins.elem (lib.getName pkg) ["idea-ultimate"];
2022-08-25 12:21:35 -06:00
2023-07-11 09:12:50 -06:00
environment.systemPackages = with pkgs; [jetbrains.idea-ultimate sshfs];
2022-08-25 12:21:35 -06:00
})
];
}