helm/modules/editors/default.nix

20 lines
331 B
Nix
Raw Normal View History

2020-03-28 22:48:43 -07:00
{ config, options, lib, pkgs, ... }:
with lib;
{
imports = [
./emacs.nix
./vim.nix
];
options.modules.editors = {
default = mkOption {
type = types.str;
default = "vi";
};
};
config = mkIf (config.modules.editors.default != null) {
my.env.EDITOR = config.modules.editors.default;
};
}