We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f77698e + 620233c commit 7ba6fe0Copy full SHA for 7ba6fe0
modules/niri/module.nix
@@ -65,14 +65,12 @@ let
65
else
66
mkKeyVal n v
67
) a;
68
- mkTagged =
69
- t: k: v:
70
- "${t} ${k}=${toVal v}";
+ mkTagged = tag: attrs: "${tag} ${lib.concatMapAttrsStringSep " " (k: v: "${k}=${toVal v}") attrs}";
71
mkRule =
72
block: r:
73
let
74
- matches = map (lib.concatMapAttrsStringSep "\n" (mkTagged "match")) r.matches or [ ];
75
- excludes = map (lib.concatMapAttrsStringSep "\n" (mkTagged "exclude")) r.excludes or [ ];
+ matches = map (mkTagged "match") r.matches or [ ];
+ excludes = map (mkTagged "exclude") r.excludes or [ ];
76
misc = attrsToKdl (
77
lib.attrsets.removeAttrs r [
78
"matches"
0 commit comments