diff options
author | Felix Bühler <Stunkymonkey@users.noreply.github.com> | 2023-02-14 19:09:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 19:09:46 +0100 |
commit | b025cb11c513354407643ce9a3829c5437747370 (patch) | |
tree | a01da644d8ee49f70ecd5316384bacbbfeef315e /nixos/tests | |
parent | 34f3085148dad1ea47aa7e512f30a17d74cd1837 (diff) | |
parent | cdb39a86e0dd7cda3a057f4f4795485a5c9b9be5 (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.nix | 2 |
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, ... }: { |