Added keyboard settings for voyager
This commit is contained in:
17
modules/system/devices/voyager.nix
Normal file
17
modules/system/devices/voyager.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.samfelag.modules.system.devices.voyager;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.system.devices.voyager = {
|
||||
enable = lib.mkEnableOption "voyager";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
hardware.keyboard.zsa.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
keymapp
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -6,6 +6,11 @@ in
|
||||
{
|
||||
options.samfelag.modules.system.kanata = {
|
||||
enable = lib.mkEnableOption "kanata";
|
||||
devices = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [];
|
||||
description = "Devices to use for kanata";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
@@ -17,6 +22,7 @@ in
|
||||
enable = true;
|
||||
keyboards = {
|
||||
internalKeyboard = {
|
||||
devices = cfg.devices;
|
||||
extraDefCfg = "process-unmapped-keys yes";
|
||||
configFile = ../../config/kanata/kanata.kbd;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user