home: terminal: export TERMINAL when appropriate
This is used by some programs, like 'rofi' to launch terminal programs.
This commit is contained in:
parent
15190d4b50
commit
1c147613e4
|
@ -1,10 +1,12 @@
|
|||
{ lib, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
mkColorOption = with lib; description: default: mkOption {
|
||||
inherit description default;
|
||||
example = "#abcdef";
|
||||
type = types.strMatching "#[0-9a-f]{6}";
|
||||
};
|
||||
|
||||
cfg = config.my.home.terminal;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
@ -52,4 +54,8 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
config.home.sessionVariables = lib.mkIf (cfg.program != null) {
|
||||
TERMINAL = "termite";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue