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.