diff --git a/modules/home-manager/sops.nix b/modules/home-manager/sops.nix index ef73737..f1e4dfe 100644 --- a/modules/home-manager/sops.nix +++ b/modules/home-manager/sops.nix @@ -241,7 +241,7 @@ in { Type = "oneshot"; ExecStart = script; }; - Install.WantedBy = [ "default.target" ]; + Install.WantedBy = if cfg.gnupg.home != null then [ "graphical-session.target" ] else [ "default.target" ]; }; launchd.agents.sops-nix = {