mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
nixos/kmscon: fix eval
This commit is contained in:
parent
c5bcace211
commit
6868a97e5e
|
@ -98,11 +98,11 @@ in {
|
|||
services.kmscon.extraConfig =
|
||||
let
|
||||
xkb = optionals cfg.useXkbConfig
|
||||
lib.mapAttrsToList (n: v: "xkb-${n}=${v}") (
|
||||
(lib.mapAttrsToList (n: v: "xkb-${n}=${v}") (
|
||||
lib.filterAttrs
|
||||
(n: v: builtins.elem n ["layout" "model" "options" "variant"] && v != "")
|
||||
config.services.xserver.xkb
|
||||
);
|
||||
));
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue