From 59cfef8bbc27868a40595b22939af8b5f6dc82d8 Mon Sep 17 00:00:00 2001 From: "PAEPCKE, Michael" Date: Fri, 30 Jan 2026 06:24:02 +0000 Subject: [PATCH] zsh: unbreak nixos module build for dynamic dhcp hostname --- nixos/modules/programs/zsh/zsh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index 63ff34aa286a..879b802a5db6 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -249,8 +249,8 @@ in setopt ${builtins.concatStringsSep " " cfg.setOptions} ''} - # Alternative method of determining short and full hostname. - HOST=${config.networking.fqdnOrHostName} + # Determine current fqdn hostname + HOST=$(hostname --fqdn) # Setup command line history. # Don't export these, otherwise other shells (bash) will try to use same HISTFILE.