1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-11 03:21:08 +01:00

keynav: add module

PR #1082
This commit is contained in:
William Carroll 2020-03-10 22:28:48 +00:00 committed by Robert Helgesson
parent cc386e4b3b
commit 2cd168467e
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ 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" ]; };
};
};
}