From 8bed01e20a48ba29d75b244b59df906fd5e9ca20 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Fri, 9 Jun 2023 17:22:06 +0200 Subject: [PATCH] Start keepassxc as part of the graphical session --- modules/graphical/pass/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/modules/graphical/pass/default.nix b/modules/graphical/pass/default.nix index 95423d9c..48a5b2b5 100644 --- a/modules/graphical/pass/default.nix +++ b/modules/graphical/pass/default.nix @@ -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" ]; + }; }; }; }