From f0212ed48f23ff0d0157d67cdddf590737c084fa Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Tue, 22 Oct 2024 15:36:58 +0700 Subject: [PATCH] ntfy-client: use default.target instead of multi-user.target --- system/services/ntfy-sh.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/system/services/ntfy-sh.nix b/system/services/ntfy-sh.nix index 7c42015..15202cd 100644 --- a/system/services/ntfy-sh.nix +++ b/system/services/ntfy-sh.nix @@ -57,8 +57,12 @@ lib.mkMerge [ systemd.user.services.ntfy-client = { enable = true; - wantedBy = [ "multi-user.target" ]; - after = [ "network.target" ]; + wantedBy = [ "default.target" ]; + after = [ + "network.target" + "dbus.socket" + ]; + requires = [ "dbus.socket" ]; environment = { DISPLAY = ":0"; DBUS_SESSION_BUS_ADDRESS = "unix:path=/run/user/${toString config.profile.user.uid}/bus";