diff --git a/hm-modules/terminal/default.nix b/hm-modules/terminal/default.nix index 3093493..ae58ae5 100644 --- a/hm-modules/terminal/default.nix +++ b/hm-modules/terminal/default.nix @@ -3,5 +3,6 @@ { imports = [ ./alacritty + ./ghostty ]; } diff --git a/hm-modules/terminal/ghostty/default.nix b/hm-modules/terminal/ghostty/default.nix new file mode 100644 index 0000000..73e8ab6 --- /dev/null +++ b/hm-modules/terminal/ghostty/default.nix @@ -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}"; + }; + }; + }; +} diff --git a/machines/fujin/main/home.nix b/machines/fujin/main/home.nix index 0b00c34..7505cf0 100644 --- a/machines/fujin/main/home.nix +++ b/machines/fujin/main/home.nix @@ -37,7 +37,13 @@ kanshi.enable = true; - terminal.alacritty.enable = true; + terminal = { + alacritty.enable = true; + ghostty = { + enable = true; + shell = "${pkgs.nushell}/bin/nu"; + }; + }; }; programs = {