flake-nvim/modules/nvim/nvim.nix
2025-02-22 13:44:05 +01:00

13 lines
313 B
Nix

{ config, pkgs, lib, inputs, ... }:
with lib; {
options.nvim = {
enable = lib.mkEnableOption "Enable Neovim";
};
config = lib.mkIf config.nvim.enable {
environment.systemPackages = [ pkgs.neovim ];
# Import the theme module automatically if it's available
imports = [ ./theme.nix ];
};
}