move to backup
This commit is contained in:
parent
294dc66380
commit
a0e3d792a9
182 changed files with 156 additions and 103 deletions
34
modules/neovim/default.nix
Normal file
34
modules/neovim/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.neovim;
|
||||
in
|
||||
{
|
||||
options.neovim = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Enable neovim";
|
||||
};
|
||||
extraPackages = mkOption {
|
||||
type = types.listOf types.package;
|
||||
default = [ ];
|
||||
description = "Additional packages to install alongside neovim on the system.";
|
||||
};
|
||||
};
|
||||
|
||||
flake-file.inputs.nixvim.url = "github:nix-community/nixvim";
|
||||
flake.modules.homeManager.neovim = {
|
||||
imports = [ inputs.nixvim.homeModules.nixvim ];
|
||||
programs.nixvim = {
|
||||
enable = cfg.enable;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue