diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2022-11-09 13:53:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 13:53:57 +0100 |
commit | 93a905ec4fbaf8d13d2debacb07b3ee2c2fc28fa (patch) | |
tree | 0eb62975310020ab6341796c95614278c6efddab /nixos/modules/services/web-apps/snipe-it.nix | |
parent | a8c4cb8835a5f91e9dd92397257452be8e551fe0 (diff) | |
parent | 18e3f431e1b36d4f569ddddd415f95921e1b7748 (diff) |
Merge pull request #194759 from hercules-ci/fqdn-or-hostname
nixos: Add `networking.fqdnOrHostName`
Diffstat (limited to 'nixos/modules/services/web-apps/snipe-it.nix')
-rw-r--r-- | nixos/modules/services/web-apps/snipe-it.nix | 7 |
1 files 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 e0d2eb8c6ab2a..6da44f1bdf34c 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. |