2020-03-28 22:48:43 -07:00
|
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
|
2020-10-01 15:46:04 -07:00
|
|
|
with lib;
|
|
|
|
with lib.my;
|
|
|
|
let cfg = config.modules.editors;
|
|
|
|
in {
|
2020-03-28 22:48:43 -07:00
|
|
|
options.modules.editors = {
|
2020-10-01 15:46:04 -07:00
|
|
|
default = mkOpt types.str "vim";
|
2020-03-28 22:48:43 -07:00
|
|
|
};
|
|
|
|
|
2020-10-01 15:46:04 -07:00
|
|
|
config = mkIf (cfg.default != null) {
|
|
|
|
env.EDITOR = cfg.default;
|
2020-03-28 22:48:43 -07:00
|
|
|
};
|
|
|
|
}
|