hosts/hijiri: keyboard mappings only for apple keyboard
This commit is contained in:
parent
7c3f3c800d
commit
117d7508f1
1 changed files with 12 additions and 1 deletions
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
configurations.darwin.hijiri =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./skhd.nix
|
||||
|
@ -52,5 +57,11 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
|
||||
system.activationScripts.keyboard.text = lib.mkForce ''
|
||||
# Configuring keyboard, but only the builtin one
|
||||
echo "configuring apple keyboard..." >&2
|
||||
hidutil property --matching '{"ProductID":0x0342}' --set '{"UserKeyMapping":${builtins.toJSON config.system.keyboard.userKeyMapping}}' > /dev/null
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue