2020-10-01 15:46:04 -07:00
|
|
|
{ options, config, lib, pkgs, ... }:
|
2020-03-28 22:48:43 -07:00
|
|
|
|
2020-10-01 15:46:04 -07:00
|
|
|
with lib;
|
|
|
|
with lib.my;
|
|
|
|
let cfg = config.modules.desktop.term;
|
|
|
|
in {
|
2020-03-28 22:48:43 -07:00
|
|
|
options.modules.desktop.term = {
|
2020-10-01 15:46:04 -07:00
|
|
|
default = mkOpt types.str "xterm";
|
2020-03-28 22:48:43 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
2020-10-01 15:46:04 -07:00
|
|
|
services.xserver.desktopManager.xterm.enable = mkDefault (cfg.default == "xterm");
|
2020-03-28 22:48:43 -07:00
|
|
|
|
2020-10-01 15:46:04 -07:00
|
|
|
env.TERMINAL = cfg.default;
|
2020-03-28 22:48:43 -07:00
|
|
|
};
|
|
|
|
}
|