From 9fdf7027cc200665da40e6a7d51b8299e70fdf30 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Sun, 26 Mar 2023 10:53:45 +0300 Subject: [PATCH] nixos/zsh: allow fqdn hostname output --- nixos/modules/programs/zsh/zsh.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index 0b152e54cf95..6bb21cb3ef66 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -236,6 +236,9 @@ in setopt ${concatStringsSep " " cfg.setOptions} ''} + # Alternative method of determining short and full hostname. + HOST=${config.networking.fqdnOrHostName} + # Setup command line history. # Don't export these, otherwise other shells (bash) will try to use same HISTFILE. SAVEHIST=${toString cfg.histSize}