mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-11 03:21:08 +01:00
parent
cc386e4b3b
commit
2cd168467e
3 changed files with 38 additions and 0 deletions
29
modules/services/keynav.nix
Normal file
29
modules/services/keynav.nix
Normal 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" ]; };
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue