summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorFlorian Jacob <projects+git@florianjacob.de>2018-09-20 13:40:50 +0200
committerFlorian Jacob <projects+git@florianjacob.de>2018-09-20 13:40:50 +0200
commit4392ec653c9e9b87bbd02db9c25c2d8c43742e8d (patch)
tree6aff6259791785a3adc34a8f1c135e9c4af768cd /nixos/modules
parent05659962cd8c04a9e8bf05b298b735f5747bf12c (diff)
downloadnixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.tar
nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.tar.gz
nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.tar.bz2
nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.tar.lz
nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.tar.xz
nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.tar.zst
nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.zip
nixos/systemd-lib: fix assertValueOneOf
when value is not a string
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/system/boot/systemd-lib.nix2
1 files changed, 1 insertions, 1 deletions
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}))