mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
clean up lib
This commit is contained in:
parent
89c0cc0373
commit
c97a621b71
7 changed files with 12 additions and 55 deletions
|
@ -33,7 +33,9 @@
|
|||
};
|
||||
|
||||
nixosModules.default = {
|
||||
home-manager.sharedModules = [./lib/hm-module.nix];
|
||||
home-manager.sharedModules = [
|
||||
./lib/module
|
||||
];
|
||||
nixpkgs.overlays = [
|
||||
inputs.tidalcycles.overlays.default
|
||||
inputs.self.overlays.default
|
||||
|
@ -42,7 +44,7 @@
|
|||
|
||||
homeManagerModules.default = {
|
||||
imports = [
|
||||
./lib/hm-module.nix
|
||||
./lib/module
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{lib}: {
|
||||
dag = import ./dag.nix {inherit lib;};
|
||||
booleans = import ./booleans.nix {inherit lib;};
|
||||
types = import ./types.nix {inherit lib;};
|
||||
types = import ./types {inherit lib;};
|
||||
}
|
||||
|
|
|
@ -1,45 +0,0 @@
|
|||
# Home Manager module
|
||||
{
|
||||
self,
|
||||
config,
|
||||
pkgs,
|
||||
lib ? pkgs.lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.programs.neovim-flake;
|
||||
set = self.packages.neovim-maximal {mainConfig = cfg.settings;};
|
||||
in
|
||||
with lib; {
|
||||
meta.maintainers = [maintainers.notashelf];
|
||||
|
||||
options.programs.neovim-flake = {
|
||||
enable = mkEnableOption "A NeoVim IDE with a focus on configurability and extensibility.";
|
||||
|
||||
settings = mkOption {
|
||||
type = types.attrsOf types.anything;
|
||||
default = {};
|
||||
example = literalExpression ''
|
||||
{
|
||||
vim.viAlias = false;
|
||||
vim.vimAlias = true;
|
||||
vim.lsp = {
|
||||
enable = true;
|
||||
formatOnSave = true;
|
||||
lightbulb.enable = true;
|
||||
lspsaga.enable = false;
|
||||
nvimCodeActionMenu.enable = true;
|
||||
trouble.enable = true;
|
||||
lspSignature.enable = true;
|
||||
rust.enable = false;
|
||||
nix = true;
|
||||
};
|
||||
}
|
||||
'';
|
||||
description = "Attribute set of neoflake preferences.";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [set.neovim];
|
||||
};
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{lib}: let
|
||||
typesDag = import ./types-dag.nix {inherit lib;};
|
||||
typesPlugin = import ./types-plugin.nix {inherit lib;};
|
||||
in {
|
||||
inherit (typesDag) dagOf;
|
||||
inherit (typesPlugin) pluginsOpt;
|
||||
}
|
7
lib/types/default.nix
Normal file
7
lib/types/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{lib}: let
|
||||
typesDag = import ./dag.nix {inherit lib;};
|
||||
typesPlugin = import ./plugins.nix {inherit lib;};
|
||||
in {
|
||||
inherit (typesDag) dagOf;
|
||||
inherit (typesPlugin) pluginsOpt;
|
||||
}
|
Loading…
Reference in a new issue