about summary refs log tree commit diff
path: root/home/terminal/default.nix
blob: e1ff0d7bb3c8fd3020e764bf3c77904caba06a5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ 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; };
}