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:
parent
09f8205a5b
commit
1f88956b95
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user