From 7ba36885bf1ac92ee4929ec50395e809d1d06db7 Mon Sep 17 00:00:00 2001 From: Nico Date: Sun, 4 May 2025 18:33:30 +1000 Subject: [PATCH 1/2] zsh: set text colour to white zsh-syntax-highlighting may not highlight the text currently in the prompt, sometimes making text look as if zsh-syntax-highlighting wasn't there at all. before this the colour was black which made it unreadable. --- stow/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stow/.zshrc b/stow/.zshrc index 5f70b05..2997f59 100644 --- a/stow/.zshrc +++ b/stow/.zshrc @@ -48,7 +48,7 @@ else TEXT_COLOUR="{black}" fi -PROMPT="%K$PRIMARY_COLOUR%F$TEXT_COLOUR %~ %K$SECONDARY_COLOUR $OSICON %k " +PROMPT="%K$PRIMARY_COLOUR%F$TEXT_COLOUR %~ %K$SECONDARY_COLOUR $OSICON %k%F{white} " RPROMPT="%F{7}$HOSTNAME" bindkey -e From a96821361d3ff8237aa5045f0df5de139d80b555 Mon Sep 17 00:00:00 2001 From: Nico Date: Sun, 4 May 2025 18:51:57 +1000 Subject: [PATCH 2/2] caddy: make each machine have a seperate subdomain based on their hostname --- modules/services/caddy.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/caddy.nix b/modules/services/caddy.nix index 7f39697..fdcdbb8 100644 --- a/modules/services/caddy.nix +++ b/modules/services/caddy.nix @@ -8,7 +8,7 @@ }; config = { - homelab.domain = "int.astolfo.org"; + homelab.domain = "${config.networking.hostName}.astolfo.org"; networking.firewall.allowedTCPPorts = [ 80 443 ]; services.caddy = {