right package for neovim with allegro and no gcc with allegro

This commit is contained in:
Antoine Vaure 2024-10-21 01:20:13 +02:00 committed by ant
parent 6dd500f280
commit e84a8ae2ef

View file

@ -1,4 +1,4 @@
{ lib, config, pkgs, ... }: {
{ lib, config, pkgs, variant, pkgs-unstable, ... }: {
home.packages = with pkgs; [
entr
trash-cli
@ -20,9 +20,8 @@
enable = true;
viAlias = true;
defaultEditor = true;
extraPackages = with pkgs; [
extraPackages = (with pkgs; [
nodejs_22
gcc
ocamlPackages.lsp
ocamlPackages.ocamlformat
cargo
@ -33,8 +32,9 @@
ocamlPackages.ocaml-lsp
pyright
ripgrep
];
};
]) ++ (if variant != "allegro" then [ pkgs.gcc ] else [] );
}
// lib.attrsets.optionalAttrs (variant == "allegro") { package = pkgs-unstable.neovim-unwrapped;};
xdg.mimeApps.defaultApplications = { "text/plain" = "nvim.desktop"; };