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 = {