Merge pull request #276180 from linj-fork/pr/kanata-list

nixos/kanata: specify linux-dev as a list
This commit is contained in:
Lin Jian
2023-12-29 20:24:56 -06:00
committed by GitHub
+7 -1
View File
@@ -78,7 +78,13 @@ let
mkName = name: "kanata-${name}";
mkDevices = devices:
optionalString ((length devices) > 0) "linux-dev ${concatStringsSep ":" devices}";
let
devicesString = pipe devices [
(map (device: "\"" + device + "\""))
(concatStringsSep " ")
];
in
optionalString ((length devices) > 0) "linux-dev (${devicesString})";
mkConfig = name: keyboard: pkgs.writeText "${mkName name}-config.kdb" ''
(defcfg