mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 02:39:45 +01:00
dd0e71d686
Also make sure graphical-session.target is generated.
27 lines
525 B
Nix
27 lines
525 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 = [ "graphical-session.target" ];
|
|
};
|
|
|
|
Service = {
|
|
ExecStart = "${pkgs.keepassx}/bin/keepassx -min -lock";
|
|
};
|
|
};
|
|
};
|
|
}
|