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