2022-03-04 19:20:54 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
|
|
|
plover-src = pkgs.plover.dev.src;
|
|
|
|
in
|
|
|
|
{
|
2022-01-24 09:06:57 +00:00
|
|
|
home.packages = [
|
|
|
|
pkgs.plover.dev
|
|
|
|
];
|
2022-03-04 19:20:54 +00:00
|
|
|
home.file = {
|
2022-03-06 09:55:53 +00:00
|
|
|
".config/plover/main.json" = {
|
|
|
|
source = "${plover-src}/plover/assets/main.json";
|
|
|
|
onChange = "${pkgs.systemd}/bin/systemctl restart --user plover";
|
|
|
|
};
|
|
|
|
".config/plover/commands.json" =
|
|
|
|
{
|
|
|
|
source = "${plover-src}/plover/assets/commands.json";
|
|
|
|
onChange = "${pkgs.systemd}/bin/systemctl restart --user plover";
|
|
|
|
};
|
|
|
|
".config/plover/user.json" = {
|
|
|
|
text = builtins.toJSON {
|
|
|
|
"SER/TKPWAL" = "Sergal";
|
|
|
|
"SERLG" = "Sergal";
|
|
|
|
"SER/WAL" = "serval";
|
|
|
|
};
|
|
|
|
onChange = "${pkgs.systemd}/bin/systemctl restart --user plover";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
systemd.user.services.plover = {
|
|
|
|
Unit = {
|
|
|
|
Description = "plover";
|
|
|
|
After = [ "tray.target" ];
|
|
|
|
PartOf = [ "graphical-session.target" ];
|
|
|
|
Requires = [ "tray.target" ];
|
|
|
|
};
|
|
|
|
Install = {
|
|
|
|
WantedBy = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
Service = {
|
|
|
|
ExecStart = "${pkgs.plover.dev}/bin/plover";
|
2022-03-04 19:20:54 +00:00
|
|
|
};
|
|
|
|
};
|
2022-01-24 09:06:57 +00:00
|
|
|
}
|