theme and scripts

This commit is contained in:
Harivansh Rathi 2026-03-20 14:22:40 -04:00
parent deade2bafb
commit 7ae7c1ceec
17 changed files with 575 additions and 270 deletions

View file

@ -1,11 +1,11 @@
{ pkgs, ... }:
let
{
config,
pkgs,
...
}: let
theme = import ../lib/theme.nix {inherit config;};
ghosttyConfig = ''
theme = "Gruvbox Material Dark"
background = #181818
cursor-color = #ddc7a1
selection-background = #504945
selection-foreground = #ebdbb2
theme = "dark:cozybox-dark,light:cozybox-light"
font-family = Berkeley Mono
font-codepoint-map = U+f101-U+f25c=nonicons
background-opacity = 1
@ -38,12 +38,6 @@ let
keybind = vim/i=deactivate_key_table
keybind = vim/catch_all=ignore
mouse-hide-while-typing = true
palette = 2=#8ec97c
palette = 10=#8ec97c
palette = 4=#4672d4
palette = 12=#4672d4
palette = 6=#8ec07c
palette = 14=#8ec07c
macos-titlebar-style = hidden
macos-option-as-alt = true
confirm-close-surface = true
@ -67,6 +61,9 @@ in {
force = true;
};
xdg.configFile."ghostty/themes/cozybox-dark".text = theme.renderGhostty "dark";
xdg.configFile."ghostty/themes/cozybox-light".text = theme.renderGhostty "light";
home.file."Library/Application Support/com.mitchellh.ghostty/config.ghostty" = {
text = ghosttyConfig;
force = true;