mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 05:40:44 +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
|
inputs: let
|
||||||
modulesWithInputs = import ./modules {inherit inputs;};
|
modulesWithInputs = import ./modules inputs;
|
||||||
|
|
||||||
neovimConfiguration = {
|
neovimConfiguration = {
|
||||||
modules ? [],
|
modules ? [],
|
||||||
|
@ -10,9 +10,7 @@ inputs: let
|
||||||
}:
|
}:
|
||||||
modulesWithInputs {
|
modulesWithInputs {
|
||||||
inherit pkgs lib check extraSpecialArgs;
|
inherit pkgs lib check extraSpecialArgs;
|
||||||
configuration = {...}: {
|
configuration.imports = modules;
|
||||||
imports = modules;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mainConfig = isMaximal: {
|
mainConfig = isMaximal: {
|
||||||
|
|
11
flake.nix
11
flake.nix
|
@ -5,19 +5,18 @@
|
||||||
flake-parts,
|
flake-parts,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
inherit (nixpkgs) lib;
|
|
||||||
inherit (import ./extra.nix inputs) neovimConfiguration mainConfig;
|
inherit (import ./extra.nix inputs) neovimConfiguration mainConfig;
|
||||||
|
|
||||||
|
tidalConfig = {
|
||||||
|
config.vim.tidal.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
buildPkg = pkgs: modules:
|
buildPkg = pkgs: modules:
|
||||||
(neovimConfiguration {
|
(neovimConfiguration {
|
||||||
inherit pkgs modules;
|
inherit pkgs modules;
|
||||||
})
|
})
|
||||||
.neovim;
|
.neovim;
|
||||||
|
|
||||||
tidalConfig = {
|
|
||||||
config.vim.tidal.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
nixConfig = mainConfig false;
|
nixConfig = mainConfig false;
|
||||||
maximalConfig = mainConfig true;
|
maximalConfig = mainConfig true;
|
||||||
in
|
in
|
||||||
|
@ -26,7 +25,7 @@
|
||||||
|
|
||||||
flake = {
|
flake = {
|
||||||
lib = {
|
lib = {
|
||||||
nvim = (import ./lib/stdlib-extended.nix nixpkgs.lib).nvim;
|
inherit (import ./lib/stdlib-extended.nix nixpkgs.lib) nvim;
|
||||||
inherit neovimConfiguration;
|
inherit neovimConfiguration;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{inputs}: {
|
inputs: {
|
||||||
configuration,
|
configuration,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib ? pkgs.lib,
|
lib ? pkgs.lib,
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
extraSpecialArgs ? {},
|
extraSpecialArgs ? {},
|
||||||
}: let
|
}: let
|
||||||
inherit (pkgs) neovim-unwrapped wrapNeovim vimPlugins;
|
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;
|
inherit (pkgs.vimUtils) buildVimPluginFrom2Nix;
|
||||||
|
|
||||||
extendedLib = import ../lib/stdlib-extended.nix lib;
|
extendedLib = import ../lib/stdlib-extended.nix lib;
|
||||||
|
|
Loading…
Reference in a new issue