22 lines
369 B
Nix
22 lines
369 B
Nix
|
{ config, pkgs, lib, ...}:
|
||
|
with lib;
|
||
|
let cfg = config.modules.dev.editors.nvim;
|
||
|
in {
|
||
|
options.modules.dev.editors.nvim = {
|
||
|
enable = mkBoolOpt false;
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
neovim
|
||
|
];
|
||
|
|
||
|
xdg.configFile = {
|
||
|
nvim = {
|
||
|
source = ../../../config/nvim;
|
||
|
recursive = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|