blob: 68dcf4bbe04aa966648b0f0cdaeb0b36f16fd51e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{ config, lib, ... }:
let cfg = config.my.home.terminal;
in
{
imports = [ ./alacritty ];
options.my.home = with lib; {
terminal = {
program = mkOption {
type = with types; nullOr (enum [ "alacritty" ]);
default = null;
example = "alacritty";
description = "Which terminal to use for home session";
};
};
};
config.home.sessionVariables =
lib.mkIf (cfg.program != null) { TERMINAL = cfg.program; };
}
|