From 1ab9d1beb1668e4cd3da2bfdd52851de0972a781 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 6 Oct 2022 16:24:03 +0200 Subject: [PATCH] nixos/snipe-it: Refactor to use config.networking.fqdnOrHostName --- nixos/modules/services/web-apps/snipe-it.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/nixos/modules/services/web-apps/snipe-it.nix b/nixos/modules/services/web-apps/snipe-it.nix index 264b72fe837b..10de321cc5d1 100644 --- a/nixos/modules/services/web-apps/snipe-it.nix +++ b/nixos/modules/services/web-apps/snipe-it.nix @@ -54,11 +54,8 @@ in { hostName = lib.mkOption { type = lib.types.str; - default = if config.networking.domain != null then - config.networking.fqdn - else - config.networking.hostName; - defaultText = lib.literalExpression "config.networking.fqdn"; + default = config.networking.fqdnOrHostName; + defaultText = lib.literalExpression "config.networking.fqdnOrHostName"; example = "snipe-it.example.com"; description = lib.mdDoc '' The hostname to serve Snipe-IT on.