diff --git a/modules/services.nix b/modules/services.nix index d19786e..ce2f961 100644 --- a/modules/services.nix +++ b/modules/services.nix @@ -1,7 +1,7 @@ # ABOUTME: systemd system and user services for the desktop session. # ABOUTME: Rebuilt from moonarch/defaults/etc/systemd/, whose units use FHS paths. -{ pkgs, lib, moonarchPkgs, ... }: +{ config, pkgs, lib, moonarchPkgs, ... }: { # --- Audio --- @@ -103,6 +103,11 @@ partOf = [ "graphical-session.target" ]; after = [ "graphical-session.target" ]; wantedBy = [ "graphical-session.target" ]; + # The widgets shell out to niri, nmcli, powerprofilesctl, the moonarch + # scripts and a dozen more, and which ones is a property of the QML, not of + # this file. As a spawn-at-startup it inherited the session PATH; the unit + # gets the same set rather than a list that goes stale on the next widget. + path = [ config.system.path ]; serviceConfig = { Type = "simple"; ExecStart = "${lib.getExe pkgs.quickshell} -c moonarch";