From 65eb8039dc27112f6f570330c75593ff3046a046 Mon Sep 17 00:00:00 2001 From: xenia Date: Thu, 29 May 2025 19:09:58 +0200 Subject: [PATCH] start background and nm-applet with niri --- home/graphical.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home/graphical.nix b/home/graphical.nix index 9aca12a6..84f2ce5d 100644 --- a/home/graphical.nix +++ b/home/graphical.nix @@ -160,6 +160,7 @@ in rec { { command = [ "${pkgs.xwayland-satellite}/bin/xwayland-satellite" XWAYLAND_DISPLAY ]; } { command = [ "${x-wayland-clipboard-daemon}" ]; } { command = [ "${pkgs.dbus}/bin/dbus-update-activation-environment" "--systemd" "WAYLAND_DISPLAY" "XDG_CURRENT_DESKTOP" ]; } # needed for screen-sharing to work + { command = [ "systemctl" "--user" "start" "background" "nm-applet" ]; } ]; environment.DISPLAY = XWAYLAND_DISPLAY; @@ -476,20 +477,20 @@ in rec { }; }; + # started by niri systemd.user.services.nm-applet = { Unit = { Description = "Network manager applet"; - After = [ "waybar.service" ]; }; Service = { ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet --indicator"; }; }; + # started by niri systemd.user.services.background = { Unit = { Description = "Desktop background"; - After = [ "niri.service" ]; }; Service = { ExecStart = pkgs.lib.escapeShellArgs [ "${pkgs.swaybg}/bin/swaybg" "--image" "${../backgrounds/eta-tak.jpg}" ];