From 76b614be3994c6c1fa054d1b4cc8b3ad72d79c3e Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 17 Sep 2024 12:48:15 -0400 Subject: [PATCH] amazon-init: include the general system's software and wrappers in PATH It is surprising that software which was installed by the user at AMI generation time isn't available to a script run over user data by default. When authoring user data to execute at startup, users will now have more predictable access to baked-in software instead of an extremely bare-minimum set currently there. --- nixos/modules/virtualisation/amazon-init.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/virtualisation/amazon-init.nix b/nixos/modules/virtualisation/amazon-init.nix index 612f6c5bc765..1a65686af37c 100644 --- a/nixos/modules/virtualisation/amazon-init.nix +++ b/nixos/modules/virtualisation/amazon-init.nix @@ -75,6 +75,11 @@ in { after = [ "multi-user.target" ]; requires = [ "network-online.target" ]; + path = [ + "/run/wrappers" + "/run/current-system/sw" + ]; + restartIfChanged = false; unitConfig.X-StopOnRemoval = false;