Unverified Commit 55c13185 authored by Lin Jian's avatar Lin Jian Committed by GitHub
Browse files

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

nixos/kanata: specify linux-dev as a list
parents 6fe27cdb ff19ecca
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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