1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 15:09:46 +01:00
home-manager/modules/services/keynav.nix
William Carroll 2cd168467e
keynav: add module
PR #1082
2020-03-17 22:59:15 +01: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 = "${cfg.package}/bin/keynav";
RestartSec = 3;
Restart = "always";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
};
}