Skip to content

Commit f404edb

Browse files
znaniyekhaneliman
authored andcommitted
niri: preserve string context in generated config
lib.trim goes through builtins.match, which discards string context, so store paths in wayland.windowManager.niri.settings end up as inert text in niri/config.kdl with nothing rooting the referenced packages. toKDL only ever appends a single trailing newline, so lib.removeSuffix strips it just as well and keeps the context.
1 parent c30c795 commit f404edb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • modules/services/window-managers

modules/services/window-managers/niri.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ in
188188
escapeBackslashes = true;
189189
escapeTabs = true;
190190
};
191-
settings = lib.trim (toKDL cfg.settings);
191+
settings = lib.removeSuffix "\n" (toKDL cfg.settings);
192192
configLines = lib.concatStringsSep "\n" (
193193
lib.filter (line: line != "") [
194194
cfg.extraConfigEarly

0 commit comments

Comments
 (0)