From 03c09e76bf73ebaa032d2e9e70e1266cba7bf7a0 Mon Sep 17 00:00:00 2001 From: Christopher Joel <240083+cdata@users.noreply.github.com> Date: Sat, 4 Oct 2025 04:07:55 +0000 Subject: [PATCH] fix: Unset `PATH` that is auto-generated by Nix This addresses a problem where the launcher is not able to actually launch any applications when it is started by a systemd unit generated by Nix. The search path would typically be inherited by a systemd unit, but Nix's unit generator will assign a specific, minimal PATH that only includes the unit's runtime dependencies. --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 179164ac2..90e83d63a 100644 --- a/flake.nix +++ b/flake.nix @@ -266,6 +266,10 @@ wantedBy = [ cfg.target ]; restartTriggers = [ cfg.package ]; + environment = { + PATH = lib.mkForce null; + }; + unitConfig = { StartLimitIntervalSec = 60; StartLimitBurst = 3; @@ -278,7 +282,6 @@ TimeoutStartSec = 10; TimeoutStopSec = 5; Environment = [ - "PATH=${config.system.path}/bin" "NOCTALIA_SETTINGS_FALLBACK=%h/.config/noctalia/gui-settings.json" ]; };