1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +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

@ -1407,6 +1407,14 @@ in
[1] https://blog.mozilla.org/addons/2019/10/31/firefox-to-discontinue-sideloaded-extensions/
'';
}
{
time = "2020-03-17T21:56:26+00:00";
condition = hostPlatform.isLinux;
message = ''
A new module is available: 'services.keynav'.
'';
}
];
};
}

View file

@ -128,6 +128,7 @@ let
(loadModule ./services/kdeconnect.nix { })
(loadModule ./services/keepassx.nix { })
(loadModule ./services/keybase.nix { })
(loadModule ./services/keynav.nix { condition = hostPlatform.isLinux; })
(loadModule ./services/lieer.nix { condition = hostPlatform.isLinux; })
(loadModule ./services/lorri.nix { condition = hostPlatform.isLinux; })
(loadModule ./services/mbsync.nix { })

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" ]; };
};
};
}