2017-01-07 18:16:26 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2017-09-26 21:40:31 +00:00
|
|
|
meta.maintainers = [ maintainers.rycee ];
|
|
|
|
|
2017-01-07 18:16:26 +00:00
|
|
|
options = {
|
|
|
|
services.keepassx = {
|
|
|
|
enable = mkEnableOption "the KeePassX password manager";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.services.keepassx.enable {
|
|
|
|
systemd.user.services.keepassx = {
|
|
|
|
Unit = {
|
|
|
|
Description = "KeePassX password manager";
|
2017-06-26 16:34:09 +00:00
|
|
|
After = [ "graphical-session-pre.target" ];
|
|
|
|
PartOf = [ "graphical-session.target" ];
|
2017-01-07 18:16:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Install = {
|
2017-01-09 21:45:42 +00:00
|
|
|
WantedBy = [ "graphical-session.target" ];
|
2017-01-07 18:16:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Service = {
|
|
|
|
ExecStart = "${pkgs.keepassx}/bin/keepassx -min -lock";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|