{ povSelf, config, lib, ... }: let inherit (lib) types; cfg = lib.getAttrFromPath povSelf config; in { options.enable = { type = types.bool; default = false; }; config = lib.mkIf cfg.enable { services.keyd = { enable = true; keyboards = { seifenkiste = { ids = [ "0001:0001:70533846" ]; settings.main = { "leftcontrol" = "leftalt"; "leftalt" = "leftcontrol"; "rightalt" = "rightcontrol"; "sysrq" = "rightalt"; "rightcontrol" = "sysrq"; }; }; lenovoKeyboard = { ids = [ "17ef:60e1:8b754650" "17ef:60ee:5896a757" ]; settings.main = { "leftcontrol" = "leftalt"; "leftalt" = "leftcontrol"; "rightalt" = "rightcontrol"; "sysrq" = "rightalt"; "rightcontrol" = "sysrq"; }; }; }; }; }; }