mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 14:45:58 +01:00
packages.nix: niceify
This commit is contained in:
parent
a946045a7c
commit
37d05187df
1 changed files with 3 additions and 36 deletions
|
@ -1,41 +1,11 @@
|
||||||
{inputs, ...}: {
|
{inputs, ...}: {
|
||||||
# imports = [
|
|
||||||
# inputs.flake-parts.flakeModules.easyOverlay
|
|
||||||
# ];
|
|
||||||
|
|
||||||
perSystem = {
|
perSystem = {
|
||||||
system,
|
system,
|
||||||
pkgs,
|
|
||||||
config,
|
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
|
packages = let
|
||||||
docs = import ../docs {
|
docs = import ../docs {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
@ -50,14 +20,11 @@
|
||||||
docs-json = docs.options.json;
|
docs-json = docs.options.json;
|
||||||
|
|
||||||
# nvim configs
|
# nvim configs
|
||||||
# nix = buildPkg pkgs [nixConfig];
|
|
||||||
# maximal = buildPkg pkgs [maximalConfig];
|
|
||||||
nix = config.legacyPackages.neovim-nix;
|
nix = config.legacyPackages.neovim-nix;
|
||||||
maximal = config.legacyPackages.neovim-maximal;
|
maximal = config.legacyPackages.neovim-maximal;
|
||||||
}
|
}
|
||||||
// (
|
// (
|
||||||
if !(builtins.elem system ["aarch64-darwin" "x86_64-darwin"])
|
if !(builtins.elem system ["aarch64-darwin" "x86_64-darwin"])
|
||||||
# then {tidal = buildPkg pkgs [tidalConfig];}
|
|
||||||
then {tidal = config.legacyPackages.neovim-tidal;}
|
then {tidal = config.legacyPackages.neovim-tidal;}
|
||||||
else {}
|
else {}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue