From 359209334b8d4747a6593503ac91dcee8e3f2b4b Mon Sep 17 00:00:00 2001 From: Kilian Mio <86004375+Mikilio@users.noreply.github.com> Date: Thu, 24 Aug 2023 21:55:37 +0300 Subject: [PATCH] fix: systemd unit file Make sure passwords are ready for services part of graphical-session.target --- modules/home-manager/sops.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/home-manager/sops.nix b/modules/home-manager/sops.nix index f1e4dfe8..141f3a7b 100644 --- a/modules/home-manager/sops.nix +++ b/modules/home-manager/sops.nix @@ -241,7 +241,7 @@ in { Type = "oneshot"; ExecStart = script; }; - Install.WantedBy = if cfg.gnupg.home != null then [ "graphical-session.target" ] else [ "default.target" ]; + Install.WantedBy = if cfg.gnupg.home != null then [ "graphical-session-pre.target" ] else [ "default.target" ]; }; launchd.agents.sops-nix = {