about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorFelix Bühler <Stunkymonkey@users.noreply.github.com>2023-02-14 19:09:46 +0100
committerGitHub <noreply@github.com>2023-02-14 19:09:46 +0100
commitb025cb11c513354407643ce9a3829c5437747370 (patch)
treea01da644d8ee49f70ecd5316384bacbbfeef315e /nixos/tests
parent34f3085148dad1ea47aa7e512f30a17d74cd1837 (diff)
parentcdb39a86e0dd7cda3a057f4f4795485a5c9b9be5 (diff)
Merge pull request #214996 from Stunkymonkey/optionalString-1
treewide: use optionalString
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/predictable-interface-names.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/predictable-interface-names.nix b/nixos/tests/predictable-interface-names.nix
index 08773120bc127..fa9bd67073bdf 100644
--- a/nixos/tests/predictable-interface-names.nix
+++ b/nixos/tests/predictable-interface-names.nix
@@ -13,7 +13,7 @@ in pkgs.lib.listToAttrs (builtins.map ({ predictable, withNetworkd }: {
   name = pkgs.lib.optionalString (!predictable) "un" + "predictable"
        + pkgs.lib.optionalString withNetworkd "Networkd";
   value = makeTest {
-    name = "${if predictable then "" else "un"}predictableInterfaceNames${if withNetworkd then "-with-networkd" else ""}";
+    name = "${lib.optionalString (!predictable) "un"}predictableInterfaceNames${lib.optionalString withNetworkd "-with-networkd"}";
     meta = {};
 
     nodes.machine = { lib, ... }: {