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,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: {
|
||||||
term = config.programs.terminal;
|
|
||||||
termcmd = "${config.programs.terminal}/bin/${config.programs.terminal.pname}";
|
|
||||||
in {
|
|
||||||
options.programs = {
|
options.programs = {
|
||||||
terminal = lib.mkPackageOption pkgs "foot" {
|
terminal = lib.mkPackageOption pkgs "alacritty" {};
|
||||||
example = "pkgs.alacritty";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
programs.foot = lib.mkIf (term == pkgs.foot) {
|
programs.alacritty.enable = true;
|
||||||
enable = true;
|
|
||||||
server.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = [term];
|
|
||||||
home.sessionVariables.TERMINAL = termcmd;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue