diff options
| -rw-r--r-- | config/ghostty.nix | 47 | ||||
| -rw-r--r-- | config/zsh.nix | 2 | ||||
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | home.nix | 1 |
4 files changed, 51 insertions, 1 deletions
diff --git a/config/ghostty.nix b/config/ghostty.nix new file mode 100644 index 0000000..7e7aef6 --- /dev/null +++ b/config/ghostty.nix @@ -0,0 +1,47 @@ +{ ... }: + +{ + programs.ghostty = { + enable = true; + + settings = { + theme = "Catppuccin Mocha"; + #background = "#282a36"; + "background-opacity" = 0.9; + + #custom-shader = "/home/swarn/.config/ghostty/bettercrt.glsl"; + + "window-vsync" = true; + + title = "Ghostty"; + class = "ghostty"; + + "shell-integration" = "zsh"; + + "quick-terminal-position" = "top"; + "quick-terminal-autohide" = false; + + "font-family" = "LythMono Nerd Font"; + "font-size" = 16; + + "cursor-style" = "block"; + "cursor-style-blink" = false; + "shell-integration-features" = "no-cursor"; + + #gtk-titlebar = false; + "window-decoration" = "server"; + "confirm-close-surface" = false; + + "window-theme" = "ghostty"; + + "window-padding-x" = 8; + "window-padding-y" = 2; + "window-padding-balance" = true; + + keybind = [ + "alt+shift+r=reload_config" + "ctrl+a=toggle_quick_terminal" + ]; + }; + }; +} diff --git a/config/zsh.nix b/config/zsh.nix index 597b1a0..e7bb628 100644 --- a/config/zsh.nix +++ b/config/zsh.nix @@ -20,6 +20,8 @@ ".." = "cd .."; + system-manager = ''nix run 'github:numtide/system-manager' --''; + zrc = "nvim $HOME/.config/zsh/.zshrc"; ga = "git add"; @@ -2,7 +2,7 @@ description = "Home Manager configuration of swarn"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - + home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; @@ -3,6 +3,7 @@ { imports = [ ./config/zsh.nix + ./config/ghostty.nix ]; home.username = "swarn"; |
