Add config option to make terminal the default
This commit is contained in:
@ -25,6 +25,7 @@ in
|
||||
{
|
||||
options.modules.alacritty = {
|
||||
enable = lib.mkOption { default = false; };
|
||||
mkDefault = lib.mkOption { default = true; };
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
@ -35,6 +36,6 @@ in
|
||||
".config/alacritty/alacritty.toml".source = ./alacritty.toml;
|
||||
};
|
||||
|
||||
home.sessionVariables.TERMINAL = "alacritty";
|
||||
home.sessionVariables.TERMINAL = lib.mkIf cfg.mkDefault "alacritty";
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user