home-manager/modules/services/keepassx.nix
Robert Helgesson dd0e71d686
Rename xorg.target to graphical-session.target
Also make sure graphical-session.target is generated.
2017-01-15 23:41:53 +01:00

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";
};
};
};
}