Start keepassxc as part of the graphical session

This commit is contained in:
Charlotte Van Petegem 2023-06-09 17:22:06 +02:00
parent c6db16da29
commit 8bed01e20a
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -23,12 +23,19 @@
];
home-manager.users.charlotte = { ... }: {
programs.password-store = {
enable = true;
settings = { PASSWORD_STORE_DIR = "/home/charlotte/repos/passwords"; };
};
services.password-store-sync.enable = true;
home.packages = [ pkgs.keepassxc ];
systemd.user.services.keepassxc = {
Unit = {
Description = "KeepassXC startup";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.keepassxc}/bin/keepassxc";
Restart = "always";
};
Install.WantedBy = [ "graphical-session.target" ];
};
};
};
}