mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
27 lines
512 B
Nix
27 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";
|
|
};
|
|
};
|
|
};
|
|
}
|