Fix usql theme

This commit is contained in:
2025-08-04 10:40:02 +02:00
parent 571b859d29
commit 19da9716a9
3 changed files with 13 additions and 1 deletions
+1
View File
@@ -132,6 +132,7 @@
kustomize
docker_28
kubebuilder
sqlcmd
go
];
home.sessionVariables = {
+11 -1
View File
@@ -1,4 +1,8 @@
{pkgs, lib, ...}: let
{
pkgs,
lib,
...
}: let
wallpaper = pkgs.writeShellScriptBin "wallpaper" ''
WALLPAPERS=~/wallpapers/
@@ -57,6 +61,12 @@ in {
else "-dark";
in "${pkgs.glib}/bin/gsettings set org.gnome.desktop.interface gtk-theme adw-gtk3${suffix}";
kubecolor = "echo 'preset: ${theme}' > ~/.kube/color.yaml";
usql = let
suffix =
if theme == "light"
then "latte"
else "mocha";
in "echo 'init: \set SYNTAX_HL_STYLE catppuccin-${suffix}' > ~/.config/usql/config.yaml";
};
in {
enable = true;
+1
View File
@@ -159,5 +159,6 @@ in
# repl
usql
mono
];
}