diff options
author | Gabriel Volpe <volpegabriel@gmail.com> | 2024-04-15 19:17:53 +0200 |
---|---|---|
committer | Gabriel Volpe <volpegabriel@gmail.com> | 2024-04-15 19:17:53 +0200 |
commit | d864c36d57b46d2e5215ee67b885dd8c4fe8b764 (patch) | |
tree | ee2c2e9816c3bd56b95bc4ffcbbf400fa3f88311 /nixos/modules/services/x11/display-managers/default.nix | |
parent | fe2bead78b1034052eca1d695118997f31826924 (diff) |
tree-wide: use mapCartesianProduct
Diffstat (limited to 'nixos/modules/services/x11/display-managers/default.nix')
-rw-r--r-- | nixos/modules/services/x11/display-managers/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix index 4c62e964c34c4..0f9b712c6df53 100644 --- a/nixos/modules/services/x11/display-managers/default.nix +++ b/nixos/modules/services/x11/display-managers/default.nix @@ -284,7 +284,7 @@ in in # We will generate every possible pair of WM and DM. concatLists ( - builtins.map + lib.mapCartesianProduct ({dm, wm}: let sessionName = "${dm.name}${optionalString (wm.name != "none") ("+" + wm.name)}"; script = xsession dm wm; @@ -312,7 +312,7 @@ in providedSessions = [ sessionName ]; }) ) - (cartesianProductOfSets { dm = dms; wm = wms; }) + { dm = dms; wm = wms; } ); }; |