nixos/kmscon: fix cfgfile missing trailing newline

Currently, the `kmscon.conf` file that is generated is missing a
trailing newline.  This breaks `kmscon`, since its parser assumes
well-formedness.

I noticed this while trying to specify a font, whose spec ended up on
the last line, but without the trailing newline, `kmscon` would not honor it.
This commit is contained in:
pancho horrillo 2024-07-27 15:28:31 +02:00
parent 09f8205a5b
commit 1f88956b95
No known key found for this signature in database
GPG Key ID: 11E0447D4ABBA7D0

View File

@ -105,7 +105,7 @@ in {
));
render = optionals cfg.hwRender [ "drm" "hwaccel" ];
fonts = optional (cfg.fonts != null) "font-name=${lib.concatMapStringsSep ", " (f: f.name) cfg.fonts}";
in lib.concatStringsSep "\n" (xkb ++ render ++ fonts);
in lib.concatLines (xkb ++ render ++ fonts);
hardware.graphics.enable = mkIf cfg.hwRender true;