From 5a6ea278da9a822471410a0e0f7a743527adc39a Mon Sep 17 00:00:00 2001 From: Juanjo Presa Date: Thu, 28 Nov 2024 13:25:47 +0100 Subject: [PATCH] nixos/os-release: make default_hostname distroId --- nixos/modules/misc/version.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/misc/version.nix b/nixos/modules/misc/version.nix index f77261b162a6..9e9d5f9de4e7 100644 --- a/nixos/modules/misc/version.nix +++ b/nixos/modules/misc/version.nix @@ -41,7 +41,7 @@ let IMAGE_VERSION = optionalString (config.system.image.version != null) config.system.image.version; VARIANT = optionalString (cfg.variantName != null) cfg.variantName; VARIANT_ID = optionalString (cfg.variant_id != null) cfg.variant_id; - DEFAULT_HOSTNAME = config.networking.fqdnOrHostName; + DEFAULT_HOSTNAME = config.system.nixos.distroId; SUPPORT_END = "2025-06-30"; };