about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-12-28 23:38:06 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-12-31 01:03:24 +0100
commitfed5dc66f80ae3a159a2449904ae067f60a04a67 (patch)
tree29abdf5af503b692fdd96d90f452ef4c241a40ed /nixos
parent68b6443ed635a3e87a62a5a8dcfd05e952c93192 (diff)
downloadnixlib-fed5dc66f80ae3a159a2449904ae067f60a04a67.tar
nixlib-fed5dc66f80ae3a159a2449904ae067f60a04a67.tar.gz
nixlib-fed5dc66f80ae3a159a2449904ae067f60a04a67.tar.bz2
nixlib-fed5dc66f80ae3a159a2449904ae067f60a04a67.tar.lz
nixlib-fed5dc66f80ae3a159a2449904ae067f60a04a67.tar.xz
nixlib-fed5dc66f80ae3a159a2449904ae067f60a04a67.tar.zst
nixlib-fed5dc66f80ae3a159a2449904ae067f60a04a67.zip
treewide: isCoercibleToString -> isMoreCoercibleToString
No change in behavior.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/nix-daemon.nix2
-rw-r--r--nixos/modules/services/system/self-deploy.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix
index 10db7cdfb33c..98d5150f2436 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.isCoercibleToString v then toString v
+        else if strings.isMoreCoercibleToString v then toString v
         else abort "The nix conf value: ${toPretty {} v} can not be encoded";
 
       mkKeyValue = k: v: "${escape [ "=" ] k} = ${mkValueString v}";
diff --git a/nixos/modules/services/system/self-deploy.nix b/nixos/modules/services/system/self-deploy.nix
index 9b1ebfd37522..9f5f39970f26 100644
--- a/nixos/modules/services/system/self-deploy.nix
+++ b/nixos/modules/services/system/self-deploy.nix
@@ -18,7 +18,7 @@ let
     in
     lib.concatStrings (lib.mapAttrsToList toArg args);
 
-  isPathType = x: lib.strings.isCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
+  isPathType = x: lib.strings.isMoreCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
 
 in
 {