From 5fbbfd7dc6a5498093437d2ecc6cf4bf501055be Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Sat, 17 May 2025 16:28:38 -0400 Subject: [PATCH] modules(neovim): create separate module --- common/neovim/default.nix | 18 ++++++++++++++++++ machines/nova/configuration.nix | 1 + 2 files changed, 19 insertions(+) create mode 100644 common/neovim/default.nix diff --git a/common/neovim/default.nix b/common/neovim/default.nix new file mode 100644 index 0000000..5528391 --- /dev/null +++ b/common/neovim/default.nix @@ -0,0 +1,18 @@ +{ + config, + pkgs, + lib, + ... +}: let + cfg = config.my.neovim; +in { + options.my.neovim = { + enable = lib.mkEnableOption "neovim"; + }; + + config = lib.mkIf cfg.enable { + environment.systemPackages = with pkgs; [nvim-custom]; + + environment.variables."EDITOR" = "nvim"; + }; +} diff --git a/machines/nova/configuration.nix b/machines/nova/configuration.nix index 252372c..84a4dbd 100644 --- a/machines/nova/configuration.nix +++ b/machines/nova/configuration.nix @@ -56,6 +56,7 @@ firewallInterface = "enp1s0"; }; + my.neovim.enable = true; my.services.keycloak.enable = true; my.services.mealie.enable = true; my.services.nextcloud.enable = true;