nixos-config/modules/editors/default.nix

25 lines
479 B
Nix
Raw Normal View History

2020-08-06 15:35:49 +00:00
# All of my text editors (and IDEs) modules are to be put here.
# From Visual Studio Code, Emacs, Neovim, and whatnot.
# The entryway to all of your text editors and IDEs.
{ config, options, lib, pkgs, ... }:
with lib;
{
imports = [
./emacs.nix
./neovim.nix
2020-08-30 21:58:22 +00:00
./vscode.nix
2020-08-06 15:35:49 +00:00
];
options.modules.editors = {
default = mkOption {
type = types.str;
default = "vim";
};
};
2020-08-16 08:33:44 +00:00
config = {
my.env.EDITOR = config.modules.editors.default;
};
2020-08-06 15:35:49 +00:00
}