mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-01 19:38:44 +00:00
flake/modules: add nixos-module; expose builtPackage
This commit is contained in:
parent
51e28d415a
commit
cf09a3bb8b
2 changed files with 73 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ packages: inputs: {
|
|||
inherit (lib) maintainers;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkOption mkEnableOption literalExpression;
|
||||
inherit (lib.types) attrsOf anything;
|
||||
inherit (lib.types) attrsOf anything package;
|
||||
|
||||
cfg = config.programs.neovim-flake;
|
||||
inherit (import ../../configuration.nix inputs) neovimConfiguration;
|
||||
|
|
@ -23,9 +23,19 @@ in {
|
|||
options.programs.neovim-flake = {
|
||||
enable = mkEnableOption "neovim-flake, the extensible neovim-wrapper";
|
||||
|
||||
builtPackage = mkOption {
|
||||
type = package;
|
||||
default = builtPackage;
|
||||
internal = true;
|
||||
description = ''
|
||||
The built neovim-flake package, wrapped with the user's configuration.
|
||||
'';
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
type = attrsOf anything;
|
||||
default = {};
|
||||
description = "Attribute set of neovim-flake preferences.";
|
||||
example = literalExpression ''
|
||||
{
|
||||
vim.viAlias = false;
|
||||
|
|
@ -43,7 +53,6 @@ in {
|
|||
};
|
||||
}
|
||||
'';
|
||||
description = "Attribute set of neoflake preferences.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue