Compare commits
No commits in common. "2540156e17d3d1a69db51251ce5ace5cfdc4ce7d" and "0350f74f7b92b17fb223623cd1176cb2831f2c04" have entirely different histories.
2540156e17
...
0350f74f7b
|
@ -1,19 +1,24 @@
|
|||
{ pkgs, lib, config, inputs, ... }:
|
||||
{ pkgs, lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.snowhawk.neovim;
|
||||
|
||||
nightlyPackage = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
||||
in
|
||||
{
|
||||
options.snowhawk.neovim = {
|
||||
enable = lib.mkEnableOption "neovim home-manager module";
|
||||
|
||||
nightly = lib.mkEnableOption "nightly build of neovim";
|
||||
enable = lib.mkEnableOption "neovim";
|
||||
|
||||
package = lib.mkPackageOption pkgs "neovim" {
|
||||
default = [ "neovim-unwrapped" ];
|
||||
};
|
||||
|
||||
# This should be close to identical to above
|
||||
#
|
||||
# package = lib.mkOption {
|
||||
# type = lib.types.package;
|
||||
# default = pkgs.neovim-unwrapped;
|
||||
# defaultText = lib.literalExpression "pkgs.neovim-unwrapped";
|
||||
# description = "The package to use for the neovim binary.";
|
||||
# };
|
||||
};
|
||||
config =
|
||||
let
|
||||
|
@ -26,8 +31,6 @@ 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";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{ pkgs, inputs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
@ -14,7 +14,10 @@
|
|||
enable = true;
|
||||
homeNetwork = true;
|
||||
};
|
||||
neovim.enable = true;
|
||||
neovim = {
|
||||
enable = true;
|
||||
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
||||
};
|
||||
sops.enable = true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue