From ed673a69dbf5f9be67183621eb0f5c1759d48299 Mon Sep 17 00:00:00 2001 From: pennae Date: Sun, 5 Dec 2021 21:45:35 +0100 Subject: treewide: add defaultText for options with simple cfg.* expression defaults adds defaultText for options with defaults that use only literals, full config.* paths, and the cfg shortcut binding. --- nixos/modules/services/video/epgstation/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nixos/modules/services/video') diff --git a/nixos/modules/services/video/epgstation/default.nix b/nixos/modules/services/video/epgstation/default.nix index f895a1bfed11..afaa88c15d10 100644 --- a/nixos/modules/services/video/epgstation/default.nix +++ b/nixos/modules/services/video/epgstation/default.nix @@ -73,6 +73,7 @@ in socketioPort = mkOption { type = types.port; default = cfg.port + 1; + defaultText = literalExpression "config.${opt.port} + 1"; description = '' Socket.io port for EPGStation to listen on. ''; -- cgit 1.4.1