nix-conf/modules/nixos/editor/default.nix
2024-04-11 10:22:48 +05:30

13 lines
227 B
Nix

{
config,
lib,
...
}: {
options = {editor.enable = lib.mkEnableOption "enable editor";};
config = lib.mkIf config.editor.enable {
programs.neovim = {
enable = true;
defaultEditor = true;
};
};
}