mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 02:39:45 +01:00
28 lines
512 B
Nix
28 lines
512 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
options = {
|
||
|
services.keepassx = {
|
||
|
enable = mkEnableOption "the KeePassX password manager";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf config.services.keepassx.enable {
|
||
|
systemd.user.services.keepassx = {
|
||
|
Unit = {
|
||
|
Description = "KeePassX password manager";
|
||
|
};
|
||
|
|
||
|
Install = {
|
||
|
WantedBy = [ "xorg.target" ];
|
||
|
};
|
||
|
|
||
|
Service = {
|
||
|
ExecStart = "${pkgs.keepassx}/bin/keepassx -min -lock";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|