Add ghostty terminal with n
This commit is contained in:
@@ -3,5 +3,6 @@
|
||||
{
|
||||
imports = [
|
||||
./alacritty
|
||||
./ghostty
|
||||
];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.dov.terminal.ghostty;
|
||||
in {
|
||||
options.dov.terminal.ghostty = {
|
||||
enable = mkEnableOption "ghostty config";
|
||||
shell = mkOption {
|
||||
type = types.str;
|
||||
default = "${pkgs.zsh}/bin/zsh";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.ghostty = {
|
||||
enable = true;
|
||||
installVimSyntax = true;
|
||||
enableZshIntegration = config.dov.shell.zsh.enable;
|
||||
settings = {
|
||||
command = "${cfg.shell}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -37,7 +37,13 @@
|
||||
|
||||
kanshi.enable = true;
|
||||
|
||||
terminal.alacritty.enable = true;
|
||||
terminal = {
|
||||
alacritty.enable = true;
|
||||
ghostty = {
|
||||
enable = true;
|
||||
shell = "${pkgs.nushell}/bin/nu";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
||||
Reference in New Issue
Block a user