nixos-config/modules/editors/default.nix

18 lines
459 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, ... }:
2020-10-25 15:49:14 +00:00
with lib; {
imports = [ ./emacs.nix ./neovim.nix ./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
2020-10-25 15:49:14 +00:00
config = { my.env.EDITOR = config.modules.editors.default; };
2020-08-06 15:35:49 +00:00
}