mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 10:49:44 +01: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";
|
|
};
|
|
};
|
|
};
|
|
}
|