diff --git a/terminal-software.nix b/terminal-software.nix index 5cc0efb..849767a 100644 --- a/terminal-software.nix +++ b/terminal-software.nix @@ -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"; };