nixos-config/config/programs/plover.nix

43 lines
1.1 KiB
Nix
Raw Normal View History

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 = {
".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
}