From 37d05187dfc9c0cc98f3af57e47dd9d35e0df366 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Fri, 10 Feb 2023 19:50:20 +0200 Subject: [PATCH] packages.nix: niceify --- flake/packages.nix | 39 +++------------------------------------ 1 file changed, 3 insertions(+), 36 deletions(-) diff --git a/flake/packages.nix b/flake/packages.nix index 1aff130..b43f964 100644 --- a/flake/packages.nix +++ b/flake/packages.nix @@ -1,41 +1,11 @@ {inputs, ...}: { - # imports = [ - # inputs.flake-parts.flakeModules.easyOverlay - # ]; - perSystem = { system, - pkgs, config, + pkgs, + lib, ... - }: let - # inherit (import ../extra.nix inputs) neovimConfiguration mainConfig; - - # tidalConfig = { - # config.vim.tidal.enable = true; - # }; - - # buildPkg = pkgs: modules: - # (neovimConfiguration { - # inherit pkgs modules; - # }) - # .neovim; - - # nixConfig = mainConfig false; - # maximalConfig = mainConfig true; - in { - # overlayAttrs = - # { - # inherit neovimConfiguration; - # neovim-nix = config.packages.nix; - # neovim-maximal = config.packages.maximal; - # } - # // ( - # if !(builtins.elem system ["aarch64-darwin" "x86_64-darwin"]) - # then {neovim-tidal = config.packages.tidal;} - # else {} - # ); - + }: { packages = let docs = import ../docs { inherit pkgs; @@ -50,14 +20,11 @@ docs-json = docs.options.json; # nvim configs - # nix = buildPkg pkgs [nixConfig]; - # maximal = buildPkg pkgs [maximalConfig]; nix = config.legacyPackages.neovim-nix; maximal = config.legacyPackages.neovim-maximal; } // ( if !(builtins.elem system ["aarch64-darwin" "x86_64-darwin"]) - # then {tidal = buildPkg pkgs [tidalConfig];} then {tidal = config.legacyPackages.neovim-tidal;} else {} );