various fixes
This commit is contained in:
@@ -31,7 +31,7 @@ if git -C "$DIR" rev-parse --git-dir > /dev/null 2>&1; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Format cost
|
||||
COST_FMT=$(printf "%.2f" "$COST")
|
||||
# Format cost (force C locale so the decimal separator is always ".")
|
||||
COST_FMT=$(LC_NUMERIC=C printf "%.2f" "$COST")
|
||||
|
||||
echo "YOLO$REPO_PATH$GIT_INFO | [$MODEL] | \$$COST_FMT | ${CONTEXT_USED}%"
|
||||
|
||||
@@ -24,13 +24,6 @@
|
||||
# Update Hyprland cursor theme
|
||||
${pkgs.hyprland}/bin/hyprctl setcursor Nordzy-cursors 24
|
||||
'';
|
||||
claude-theme = ''
|
||||
# Switch Claude Code to dark theme
|
||||
CLAUDE_CONFIG=~/.claude.json
|
||||
if [ -f "$CLAUDE_CONFIG" ]; then
|
||||
${pkgs.jq}/bin/jq '.theme = "dark"' "$CLAUDE_CONFIG" > "$CLAUDE_CONFIG.tmp" && mv "$CLAUDE_CONFIG.tmp" "$CLAUDE_CONFIG"
|
||||
fi
|
||||
'';
|
||||
noctalia-theme = ''
|
||||
noctalia msg theme-mode-set dark
|
||||
'';
|
||||
@@ -53,13 +46,6 @@
|
||||
# Update Hyprland cursor theme
|
||||
${pkgs.hyprland}/bin/hyprctl setcursor Nordzy-white 24
|
||||
'';
|
||||
claude-theme = ''
|
||||
# Switch Claude Code to light theme
|
||||
CLAUDE_CONFIG=~/.claude.json
|
||||
if [ -f "$CLAUDE_CONFIG" ]; then
|
||||
${pkgs.jq}/bin/jq '.theme = "light"' "$CLAUDE_CONFIG" > "$CLAUDE_CONFIG.tmp" && mv "$CLAUDE_CONFIG.tmp" "$CLAUDE_CONFIG"
|
||||
fi
|
||||
'';
|
||||
noctalia-theme = ''
|
||||
noctalia msg theme-mode-set light
|
||||
'';
|
||||
|
||||
@@ -59,6 +59,8 @@
|
||||
name = "Orchis-Dark-Compact";
|
||||
package = pkgs.orchis-theme;
|
||||
};
|
||||
# Keep applying the gtk3 theme to gtk4 too (new default is null).
|
||||
gtk4.theme = config.gtk.theme;
|
||||
iconTheme = {
|
||||
name = "Tela black";
|
||||
package = pkgs.tela-icon-theme;
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
pinentry.package = pkgs.pinentry-gnome3;
|
||||
# Use gpg-agent as the ssh-agent so AddKeysToAgent ("yes") in ssh.nix
|
||||
# has an agent to load keys into.
|
||||
enableSshSupport = true;
|
||||
};
|
||||
|
||||
programs.password-store = {
|
||||
|
||||
@@ -44,12 +44,18 @@ in
|
||||
|
||||
home.sessionVariables = {
|
||||
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||
# WebKitGTK (Tauri apps) renders blank/crashes on the DMABUF path across
|
||||
# many GPU/driver combos; disable it on all hosts.
|
||||
WEBKIT_DISABLE_DMABUF_RENDERER = "1";
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = null;
|
||||
portalPackage = null;
|
||||
# Keep the hyprlang config format (the new default is "lua"); our
|
||||
# settings are written as hyprlang.
|
||||
configType = "hyprlang";
|
||||
plugins = [ ];
|
||||
settings = {
|
||||
plugin = {
|
||||
|
||||
@@ -53,7 +53,6 @@ in
|
||||
"gtk3"
|
||||
"gtk4"
|
||||
"hyprland"
|
||||
"kitty"
|
||||
"qt"
|
||||
];
|
||||
};
|
||||
|
||||
@@ -36,6 +36,8 @@ in
|
||||
{
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
# Fixed theme — noctalia no longer toggles kitty with dark/light mode.
|
||||
themeFile = "Catppuccin-Mocha";
|
||||
settings = {
|
||||
confirm_os_window_close = 0;
|
||||
cursor_trail = 1;
|
||||
@@ -101,7 +103,6 @@ in
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
include themes/noctalia.conf
|
||||
cursor_shape block
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -2,10 +2,34 @@
|
||||
{
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
|
||||
# Opt out of the soon-to-be-removed implicit `settings."*"` defaults.
|
||||
# They only ever matched OpenSSH's own defaults, so nothing is lost.
|
||||
enableDefaultConfig = false;
|
||||
|
||||
# `settings` is a freeform block set: attribute names are Host/Match
|
||||
# patterns, values use OpenSSH directive names directly.
|
||||
settings = {
|
||||
"*" = {
|
||||
# Connection multiplexing — reuse one TCP/auth connection for
|
||||
# repeated ssh/git/scp to the same host. `%C` is a hash, so no
|
||||
# parent directory needs pre-creating.
|
||||
ControlMaster = "auto";
|
||||
ControlPath = "~/.ssh/control-%C";
|
||||
ControlPersist = "10m";
|
||||
|
||||
# Keep idle sessions alive; drop genuinely dead ones after ~3 min.
|
||||
ServerAliveInterval = 60;
|
||||
ServerAliveCountMax = 3;
|
||||
|
||||
# Load the key into the (gpg-)agent on first use — passphrase once
|
||||
# per session. Requires services.gpg-agent.enableSshSupport.
|
||||
AddKeysToAgent = "yes";
|
||||
};
|
||||
|
||||
"yolo" = {
|
||||
hostname = "10.7.10.2";
|
||||
remoteForwards = [
|
||||
HostName = "10.7.10.2";
|
||||
RemoteForward = [
|
||||
{
|
||||
bind.port = 9222;
|
||||
host.address = "localhost";
|
||||
|
||||
Reference in New Issue
Block a user