22 lines
521 B
Nix
22 lines
521 B
Nix
{upkgs, ...}: {
|
|
home.packages = with upkgs; [
|
|
keepassxc
|
|
];
|
|
|
|
systemd.user.services.keepassxc = {
|
|
Unit = {
|
|
Description = "KeePassXC password manager";
|
|
After = ["graphical-session-pre.target"];
|
|
PartOf = ["graphical-session.target"];
|
|
};
|
|
Service = {
|
|
Description = "${upkgs.keepassxc}/bin/keepassxc";
|
|
Restart = "on-failure";
|
|
};
|
|
Install.WantedBy = ["graphical-session.target"];
|
|
};
|
|
|
|
xdg.configFile."keepassxc/keepassxc.ini" = {
|
|
source = ./keepassxc.ini;
|
|
};
|
|
}
|