change the plover dictionary used

This commit is contained in:
Charlotte 🦝 Delenk 2022-07-06 19:25:34 +01:00
parent 0646947df7
commit 9de230ec3b
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 43 additions and 25 deletions

View file

@ -2,12 +2,14 @@
lib,
pkgs,
system,
nix-packages,
...
}: let
inherit (pkgs) plover plover-plugins-manager regenpfeifer plover-regenpfeifer plover-emoji plover-tapey-tape plover-yaml-dictionary;
plover-env = plover.pythonModule.withPackages (_: [plover plover-plugins-manager plover-emoji plover-tapey-tape plover-yaml-dictionary]);
plover-src = plover.src;
plover-dictionaries-english = [
plover-dictionaries-english =
[
{
enabled = true;
path = pkgs.writeText "user.json" (builtins.toJSON {
@ -23,15 +25,30 @@
"TPUR/SO/TPHA" = "fursona";
});
}
{
]
++ (map (module: {
enabled = true;
path = "${plover-src}/plover/assets/commands.json";
}
{
enabled = true;
path = "${plover-src}/plover/assets/main.json";
}
];
path = nix-packages.packages.${system}."plover-dict-${module}";
}) [
"abbreviations"
"briefs"
"currency"
"dict"
"nouns"
"numbers"
"numbers-powerups"
"proper-nouns"
"punctuation-powerups"
"punctuation-unspaced"
"symbols"
"symbols-briefs"
"symbols-currency"
"top-10000-project-gutenberg-words"
"top-level-domains"
# Put these last
"condensed-strokes"
"condensed-strokes-fingerspelled"
]);
plover-cfg = pkgs.writeText "plover.cfg" (lib.generators.toINI {} {
"Machine Configuration".machine_type = "Keyboard";
"System: English Stenotype" = {

View file

@ -88,6 +88,7 @@ rec {
nur.overlay
polymc.overlay
];
home-manager.extraSpecialArgs = args // {inherit system;};
})
(import utils/link-input.nix args)
];