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
|
let
|
||||||
cfg = config.snowhawk.neovim;
|
cfg = config.snowhawk.neovim;
|
||||||
|
|
||||||
nightlyPackage = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.snowhawk.neovim = {
|
options.snowhawk.neovim = {
|
||||||
enable = lib.mkEnableOption "neovim home-manager module";
|
enable = lib.mkEnableOption "neovim";
|
||||||
|
|
||||||
nightly = lib.mkEnableOption "nightly build of neovim";
|
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "neovim" {
|
package = lib.mkPackageOption pkgs "neovim" {
|
||||||
default = [ "neovim-unwrapped" ];
|
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 =
|
config =
|
||||||
let
|
let
|
||||||
|
@ -26,8 +31,6 @@ in
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
lib.mkIf cfg.enable {
|
lib.mkIf cfg.enable {
|
||||||
snowhawk.neovim.package = lib.mkIf cfg.nightly (lib.mkDefault nightlyPackage);
|
|
||||||
|
|
||||||
# Set nvim as manpager and default editor
|
# Set nvim as manpager and default editor
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, inputs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -14,7 +14,10 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
homeNetwork = true;
|
homeNetwork = true;
|
||||||
};
|
};
|
||||||
neovim.enable = true;
|
neovim = {
|
||||||
|
enable = true;
|
||||||
|
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
||||||
|
};
|
||||||
sops.enable = true;
|
sops.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue