about summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-12-31 00:42:22 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-12-31 01:33:47 +0100
commit834f0d660a79e8f08c108237d76fc1b42024289b (patch)
tree4d2a7a4b46f6757ac649a5ec63a45606baf6ca53 /nixos/modules/services
parent872a24ebbc8056142f7930cc0f775237c4ca83f7 (diff)
lib.strings: isMoreCoercibleString -> isConvertibleWithToString
Yes, this function name is inconveniently long, but it is important
for the name to explicitly reference the function and not be mistaken
for the implicit string conversions, which only happen for a smaller
set of values.
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/misc/nix-daemon.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix
index 98d5150f24368..9863cc8e574c8 100644
--- a/nixos/modules/services/misc/nix-daemon.nix
+++ b/nixos/modules/services/misc/nix-daemon.nix
@@ -42,7 +42,7 @@ let
         else if isDerivation v then toString v
         else if builtins.isPath v then toString v
         else if isString v then v
-        else if strings.isMoreCoercibleToString v then toString v
+        else if strings.isConvertibleWithToString v then toString v
         else abort "The nix conf value: ${toPretty {} v} can not be encoded";
 
       mkKeyValue = k: v: "${escape [ "=" ] k} = ${mkValueString v}";