mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
nixos/discourse: Refactor to use config.networking.fqdnOrHostName
This commit is contained in:
parent
c069475f82
commit
5699ff529a
1 changed files with 2 additions and 5 deletions
|
@ -42,11 +42,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 = "discourse.example.com";
|
example = "discourse.example.com";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
The hostname to serve Discourse on.
|
The hostname to serve Discourse on.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue