depot/third_party/home-manager/modules/services/keynav.nix
Default email 72904c318c Project import generated by Copybara.
GitOrigin-RevId: 9bf1f40af124573a54fd208b1f539eb694ef31a6
2020-10-11 17:22:58 -07:00

29 lines
582 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.keynav;
in {
options.services.keynav = { enable = mkEnableOption "keynav"; };
config = mkIf cfg.enable {
systemd.user.services.keynav = {
Unit = {
Description = "keynav";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.keynav}/bin/keynav";
RestartSec = 3;
Restart = "always";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
};
}