mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
simplify things
This commit is contained in:
parent
885a43f6e7
commit
c759ae02f5
3 changed files with 9 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
inputs: let
|
||||
modulesWithInputs = import ./modules {inherit inputs;};
|
||||
modulesWithInputs = import ./modules inputs;
|
||||
|
||||
neovimConfiguration = {
|
||||
modules ? [],
|
||||
|
@ -10,9 +10,7 @@ inputs: let
|
|||
}:
|
||||
modulesWithInputs {
|
||||
inherit pkgs lib check extraSpecialArgs;
|
||||
configuration = {...}: {
|
||||
imports = modules;
|
||||
};
|
||||
configuration.imports = modules;
|
||||
};
|
||||
|
||||
mainConfig = isMaximal: {
|
||||
|
|
11
flake.nix
11
flake.nix
|
@ -5,19 +5,18 @@
|
|||
flake-parts,
|
||||
...
|
||||
} @ inputs: let
|
||||
inherit (nixpkgs) lib;
|
||||
inherit (import ./extra.nix inputs) neovimConfiguration mainConfig;
|
||||
|
||||
tidalConfig = {
|
||||
config.vim.tidal.enable = true;
|
||||
};
|
||||
|
||||
buildPkg = pkgs: modules:
|
||||
(neovimConfiguration {
|
||||
inherit pkgs modules;
|
||||
})
|
||||
.neovim;
|
||||
|
||||
tidalConfig = {
|
||||
config.vim.tidal.enable = true;
|
||||
};
|
||||
|
||||
nixConfig = mainConfig false;
|
||||
maximalConfig = mainConfig true;
|
||||
in
|
||||
|
@ -26,7 +25,7 @@
|
|||
|
||||
flake = {
|
||||
lib = {
|
||||
nvim = (import ./lib/stdlib-extended.nix nixpkgs.lib).nvim;
|
||||
inherit (import ./lib/stdlib-extended.nix nixpkgs.lib) nvim;
|
||||
inherit neovimConfiguration;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{inputs}: {
|
||||
inputs: {
|
||||
configuration,
|
||||
pkgs,
|
||||
lib ? pkgs.lib,
|
||||
|
@ -6,7 +6,7 @@
|
|||
extraSpecialArgs ? {},
|
||||
}: let
|
||||
inherit (pkgs) neovim-unwrapped wrapNeovim vimPlugins;
|
||||
inherit (builtins) map filter isString toString getAttr hasAttr attrNames;
|
||||
inherit (builtins) map filter isString toString getAttr;
|
||||
inherit (pkgs.vimUtils) buildVimPluginFrom2Nix;
|
||||
|
||||
extendedLib = import ../lib/stdlib-extended.nix lib;
|
||||
|
|
Loading…
Reference in a new issue