mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
nixos/kanata: specify linux-dev as a list
This is better because it allows some special characters in the device path. See [1] for more information. [1]: https://github.com/jtroo/kanata/pull/647
This commit is contained in:
parent
ee63fd6a49
commit
ff19ecca71
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user