nixos/k3s: fix typo

(cherry picked from commit 3086227f72)
This commit is contained in:
Jost Alemann
2025-07-09 23:10:04 +02:00
committed by github-actions[bot]
parent f046a10380
commit a91f59ad63

View File

@@ -770,7 +770,7 @@ in
) "k3s: Images are only imported on nodes with an enabled agent, they will be ignored by this node")
++ (lib.optional (
cfg.role == "agent" && cfg.configPath == null && cfg.serverAddr == ""
) "k3s: ServerAddr or configPath (with 'server' key) should be set if role is 'agent'")
) "k3s: serverAddr or configPath (with 'server' key) should be set if role is 'agent'")
++ (lib.optional
(cfg.role == "agent" && cfg.configPath == null && cfg.tokenFile == null && cfg.token == "")
"k3s: Token or tokenFile or configPath (with 'token' or 'token-file' keys) should be set if role is 'agent'"