[NixOS] Fix keyboard configuration compilation

This commit is contained in:
Ivan Malison 2021-07-19 20:30:41 -06:00
parent cd16b71219
commit dd441126be

View File

@ -87,27 +87,15 @@
xkbOptions = "ctrl:swapcaps"; xkbOptions = "ctrl:swapcaps";
layout = "us+rwin_as_hyper"; layout = "us+rwin_as_hyper";
extraLayouts.hyper = { extraLayouts.rwin_as_hyper = {
description = "Right Alt as Hyper key"; description = "Right Alt as Hyper key";
languages = [ ]; languages = [ ];
symbolsFile = pkgs.writeText "hyper" '' symbolsFile = pkgs.writeText "rwin_as_hyper" ''
partial modifier_keys partial modifier_keys
xkb_symbols "rwin_as_hyper" { xkb_symbols "rwin_as_hyper" {
replace key <RWIN> { [ Hyper_R ] }; replace key <RWIN> { [ Hyper_R ] };
modifier_map Mod3 { <HYPR>, Hyper_L, Hyper_R }; modifier_map Mod3 { <HYPR>, Hyper_L, Hyper_R };
}; };
partial modifier_keys
xkb_symbols "home_as_hyper" {
replace key <HOME> { [ Hyper_L ] };
modifier_map Mod3 { <HOME>, Hyper_L, Hyper_R };
};
partial modifier_keys
xkb_symbols "ralt_as_hyper" {
replace key <RALT> { [ Hyper_L, Hyper_L ] };
modifier_map Mod3 { <RALT>, Hyper_L };
};
''; '';
}; };