1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 16:41:04 +01:00
home-manager/modules/services/keynav.nix
Austin Horstman 82ee14ff60
treewide: remove with lib (#6871)
Remove from services.
2025-04-21 11:00:59 -05:00

40 lines
713 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.services.keynav;
in
{
options.services.keynav = {
enable = lib.mkEnableOption "keynav";
};
config = lib.mkIf cfg.enable {
assertions = [
(lib.hm.assertions.assertPlatform "services.keynav" pkgs lib.platforms.linux)
];
systemd.user.services.keynav = {
Unit = {
Description = "keynav";
After = [ "graphical-session.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.keynav}/bin/keynav";
RestartSec = 3;
Restart = "always";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
}