1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-30 21:59:49 +01:00
home-manager/modules/services/keynav.nix

30 lines
582 B
Nix
Raw Normal View History

2020-03-10 23:28:48 +01:00
{ 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";
2020-03-10 23:28:48 +01:00
RestartSec = 3;
Restart = "always";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
};
}