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

24 lines
424 B
Nix

{ config, options, lib, pkgs, ... }:
with lib;
{
imports = [
# ./alacritty.nix
./st.nix
# ./urxvt.nix
];
options.modules.desktop.term = {
default = mkOption {
type = types.str;
default = "xterm";
};
};
config = {
services.xserver.desktopManager.xterm.enable =
config.modules.desktop.term.default == "xterm";
my.env.TERMINAL = config.modules.editors.default;
};
}