aboutsummaryrefslogblamecommitdiff
path: root/home/terminal/default.nix
blob: 68dcf4bbe04aa966648b0f0cdaeb0b36f16fd51e (plain) (tree)
1
2
3
4

                                  

  













                                                               
{ 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; };
}