nixos/bookstack: Refactor to use config.networking.fqdnOrHostName

This commit is contained in:
Robert Hensing 2022-10-06 16:23:13 +02:00
parent 12da62fef5
commit c069475f82

View file

@ -60,11 +60,8 @@ in {
hostname = lib.mkOption { hostname = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = if config.networking.domain != null then default = config.networking.fqdnOrHostName;
config.networking.fqdn defaultText = lib.literalExpression "config.networking.fqdnOrHostName";
else
config.networking.hostName;
defaultText = lib.literalExpression "config.networking.fqdn";
example = "bookstack.example.com"; example = "bookstack.example.com";
description = lib.mdDoc '' description = lib.mdDoc ''
The hostname to serve BookStack on. The hostname to serve BookStack on.