13 lines
333 B
Nix
13 lines
333 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 = builtins.concatLists[ ./theme.nix ];
|
|
};
|
|
}
|