Add config option to make terminal the default
This commit is contained in:
parent
ba70fd8553
commit
1f3693359f
@ -32,8 +32,18 @@
|
|||||||
};
|
};
|
||||||
topgrade.enable = true;
|
topgrade.enable = true;
|
||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
# kitty.enable = true;
|
kitty = {
|
||||||
wezterm.enable = true;
|
enable = true;
|
||||||
|
mkDefault = false;
|
||||||
|
};
|
||||||
|
wezterm = {
|
||||||
|
enable = true;
|
||||||
|
mkDefault = true;
|
||||||
|
};
|
||||||
|
alacritty = {
|
||||||
|
enable = true;
|
||||||
|
mkDefault = false;
|
||||||
|
};
|
||||||
yazi.enable = true;
|
yazi.enable = true;
|
||||||
emacs.enable = true;
|
emacs.enable = true;
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ in
|
|||||||
{
|
{
|
||||||
options.modules.alacritty = {
|
options.modules.alacritty = {
|
||||||
enable = lib.mkOption { default = false; };
|
enable = lib.mkOption { default = false; };
|
||||||
|
mkDefault = lib.mkOption { default = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
@ -35,6 +36,6 @@ in
|
|||||||
".config/alacritty/alacritty.toml".source = ./alacritty.toml;
|
".config/alacritty/alacritty.toml".source = ./alacritty.toml;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables.TERMINAL = "alacritty";
|
home.sessionVariables.TERMINAL = lib.mkIf cfg.mkDefault "alacritty";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,7 @@ in
|
|||||||
{
|
{
|
||||||
options.modules.kitty = {
|
options.modules.kitty = {
|
||||||
enable = lib.mkOption { default = false; };
|
enable = lib.mkOption { default = false; };
|
||||||
|
mkDefault = lib.mkOption { default = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
@ -43,6 +44,10 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables.TERMINAL = "kitty";
|
# home.shellAliases = {
|
||||||
|
# ssh = "kitten ssh"; # Copy kitten terminfo to remote
|
||||||
|
# };
|
||||||
|
|
||||||
|
home.sessionVariables.TERMINAL = lib.mkIf cfg.mkDefault "kitty";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,6 @@ in
|
|||||||
unstable.path-of-building # Path of Building
|
unstable.path-of-building # Path of Building
|
||||||
# frajul.pob-dev-version # Path of Building
|
# frajul.pob-dev-version # Path of Building
|
||||||
vlc
|
vlc
|
||||||
wezterm # Terminal
|
|
||||||
wine
|
wine
|
||||||
winetricks
|
winetricks
|
||||||
xclip # x11 clipboard access from terminal
|
xclip # x11 clipboard access from terminal
|
||||||
|
@ -25,6 +25,7 @@ in
|
|||||||
{
|
{
|
||||||
options.modules.wezterm = {
|
options.modules.wezterm = {
|
||||||
enable = lib.mkOption { default = false; };
|
enable = lib.mkOption { default = false; };
|
||||||
|
mkDefault = lib.mkOption { default = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
@ -35,7 +36,7 @@ in
|
|||||||
local config = {}
|
local config = {}
|
||||||
|
|
||||||
config.color_scheme = 'Catppuccin Mocha'
|
config.color_scheme = 'Catppuccin Mocha'
|
||||||
-- config.font = wezterm.font 'DejaVu Sans'
|
-- config.font = wezterm.font 'JetBrains Mono'
|
||||||
-- config.font_size = 12.0
|
-- config.font_size = 12.0
|
||||||
config.hide_tab_bar_if_only_one_tab = true
|
config.hide_tab_bar_if_only_one_tab = true
|
||||||
config.audible_bell = 'Disabled'
|
config.audible_bell = 'Disabled'
|
||||||
@ -47,7 +48,7 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables.TERMINAL = "wezterm-start-here";
|
home.sessionVariables.TERMINAL = lib.mkIf cfg.mkDefault "wezterm-start-here";
|
||||||
|
|
||||||
# Otherwise wezterm does not start in directory of parent process
|
# Otherwise wezterm does not start in directory of parent process
|
||||||
home.packages = [
|
home.packages = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user