Compare commits

...

2 Commits

Author SHA1 Message Date
John Lancaster fef4ff71bb fixed ghostty x11 stuff 2026-03-30 00:07:16 -05:00
John Lancaster c0c1e92249 filled in some neovim config 2026-03-30 00:04:50 -05:00
2 changed files with 65 additions and 8 deletions
+13 -4
View File
@@ -8,6 +8,17 @@
};
flake.modules.homeManager.ghostty = { config, pkgs, lib, ... }:
let
ghosttyPackage = pkgs.symlinkJoin {
name = "ghostty-x11";
paths = [ (config.lib.nixGL.wrap pkgs.ghostty) ];
nativeBuildInputs = [ pkgs.makeWrapper ];
meta.mainProgram = "ghostty";
postBuild = ''
wrapProgram $out/bin/ghostty --set GDK_BACKEND x11
'';
};
in
{
home.sessionVariables = {
TERMINAL = "ghostty";
@@ -22,7 +33,7 @@
programs.ghostty = {
enable = true;
enableZshIntegration = true;
package = config.lib.nixGL.wrap pkgs.ghostty;
package = ghosttyPackage;
settings = {
command = "TERM=xterm-256color ${lib.getExe pkgs.zsh}";
font-size = 12;
@@ -60,13 +71,12 @@
# https://github.com/ghostty-org/ghostty/discussions/3763#discussioncomment-11699970
xdg.desktopEntries."com.mitchellh.ghostty" =
let
ghosttyCmd = "nixGLMesa ${lib.getExe pkgs.ghostty}";
ghosttyCmd = lib.getExe ghosttyPackage;
in
{
name = "Ghostty";
type = "Application";
comment = "A terminal emulator";
# exec = "nixGLMesa ghostty";
exec = ghosttyCmd;
icon = "com.mitchellh.ghostty";
terminal = false;
@@ -85,7 +95,6 @@
new-window = {
name = "New Window";
exec = ghosttyCmd;
# exec = "nixGLMesa ghostty";
};
};
};
+52 -4
View File
@@ -12,15 +12,63 @@
modules = [
{
config.vim = {
options = {
number = true;
relativenumber = true;
expandtab = true;
shiftwidth = 4;
tabstop = 4;
softtabstop = 4;
};
syntaxHighlighting = true;
# Enable custom theming options
theme.enable = true;
theme.name = "catppuccin";
theme.style = "mocha";
lazy = {
enable = true;
};
telescope = {
enable = true;
extensions = [
{
name = "fzf";
packages = [pkgs.vimPlugins.telescope-fzf-native-nvim];
setup = {fzf = {fuzzy = true;};};
}
];
};
# Enable Treesitter
treesitter.enable = true;
treesitter = {
enable = true;
# grammars = [ "python" ];
};
# Other options will go here. Refer to the config
# reference in Appendix B of the nvf manual.
# ...
lsp.enable = true;
languages = {
enableTreesitter = true;
enableFormat = true;
python = {
enable = true;
dap.enable = true;
format.type = [ "ruff" ];
};
};
keymaps = [
{
key = "<leader>m";
mode = "n";
silent = true;
action = ":make<CR>";
}
];
};
}
];