helm/modules/editors/default.nix
2020-03-29 01:55:14 -04:00

20 lines
331 B
Nix

{ 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;
};
}