neovim: nightly option
This commit is contained in:
parent
4d13192751
commit
78119f6aad
1 changed files with 8 additions and 2 deletions
|
@ -1,11 +1,15 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{ pkgs, lib, config, inputs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.snowhawk.neovim;
|
||||
|
||||
nightlyPackage = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
||||
in
|
||||
{
|
||||
options.snowhawk.neovim = {
|
||||
enable = lib.mkEnableOption "neovim";
|
||||
enable = lib.mkEnableOption "neovim home-manager module";
|
||||
|
||||
nightly = lib.mkEnableOption "nightly build of neovim";
|
||||
|
||||
package = lib.mkPackageOption pkgs "neovim" {
|
||||
default = [ "neovim-unwrapped" ];
|
||||
|
@ -31,6 +35,8 @@ in
|
|||
};
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
snowhawk.neovim.package = lib.mkIf cfg.nightly (lib.mkDefault nightlyPackage);
|
||||
|
||||
# Set nvim as manpager and default editor
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
|
|
Loading…
Reference in a new issue