forked from foxora/nix
23 lines
547 B
Nix
23 lines
547 B
Nix
{ config, inputs, lib, pkgs, ... }:
|
|
{
|
|
home.packages = with pkgs; [
|
|
keepassxc
|
|
];
|
|
|
|
systemd.user.services.keepassxc = {
|
|
Unit = {
|
|
Description = "KeePassXC password manager";
|
|
After = [ "graphical-session-pre.target" ];
|
|
PartOf = [ "graphical-session.target" ];
|
|
};
|
|
Service = {
|
|
Description = "${pkgs.keepassxc}/bin/keepassxc";
|
|
Restart = "on-failure";
|
|
};
|
|
Install.WantedBy = [ "graphical-session.target" ];
|
|
};
|
|
|
|
xdg.configFile."keepassxc/keepassxc.ini" = {
|
|
source = ./keepassxc.ini;
|
|
};
|
|
}
|