From 4392ec653c9e9b87bbd02db9c25c2d8c43742e8d Mon Sep 17 00:00:00 2001 From: Florian Jacob Date: Thu, 20 Sep 2018 13:40:50 +0200 Subject: [PATCH] nixos/systemd-lib: fix assertValueOneOf when value is not a string --- nixos/modules/system/boot/systemd-lib.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd-lib.nix b/nixos/modules/system/boot/systemd-lib.nix index 9c8d4a026b4a..68a40377ee13 100644 --- a/nixos/modules/system/boot/systemd-lib.nix +++ b/nixos/modules/system/boot/systemd-lib.nix @@ -63,7 +63,7 @@ in rec { assertValueOneOf = name: values: group: attr: optional (attr ? ${name} && !elem attr.${name} values) - "Systemd ${group} field `${name}' cannot have value `${attr.${name}}'."; + "Systemd ${group} field `${name}' cannot have value `${toString attr.${name}}'."; assertHasField = name: group: attr: optional (!(attr ? ${name}))