switch terminal to alacritty
fixes ssh problems
This commit is contained in:
parent
274493e61b
commit
0e1e278e26
1 changed files with 3 additions and 15 deletions
|
|
@ -1,25 +1,13 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
term = config.programs.terminal;
|
||||
termcmd = "${config.programs.terminal}/bin/${config.programs.terminal.pname}";
|
||||
in {
|
||||
}: {
|
||||
options.programs = {
|
||||
terminal = lib.mkPackageOption pkgs "foot" {
|
||||
example = "pkgs.alacritty";
|
||||
};
|
||||
terminal = lib.mkPackageOption pkgs "alacritty" {};
|
||||
};
|
||||
|
||||
config = {
|
||||
programs.foot = lib.mkIf (term == pkgs.foot) {
|
||||
enable = true;
|
||||
server.enable = true;
|
||||
};
|
||||
|
||||
home.packages = [term];
|
||||
home.sessionVariables.TERMINAL = termcmd;
|
||||
programs.alacritty.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue