mirror of
https://github.com/nix-community/home-manager
synced 2024-12-04 00:49:46 +01:00
2dd4c20f49
When the change requested in
https://github.com/rycee/home-manager/pull/1082#discussion_r392715440
was applied, the service `ExecStart` attribute was not updated to use
`pkgs.keynav`.
Fixes #1177
PR #1184
(cherry picked from commit ee1c40e5c5
)
29 lines
582 B
Nix
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" ]; };
|
|
};
|
|
};
|
|
}
|