From 9334c8ec11ddb3ddea885f6387d33f31436b9b84 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Fri, 9 Dec 2022 17:11:39 +0100 Subject: [PATCH] Set default PATH when image.enableRecommendedContents is true --- src/nix/modules/service/image-recommended.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/nix/modules/service/image-recommended.nix b/src/nix/modules/service/image-recommended.nix index a4c5eac..4f4dc60 100644 --- a/src/nix/modules/service/image-recommended.nix +++ b/src/nix/modules/service/image-recommended.nix @@ -28,9 +28,12 @@ in }; }; - config = { - image.contents = mkIf config.image.enableRecommendedContents [ + config = mkIf config.image.enableRecommendedContents { + image.contents = [ (pkgs.callPackage recommendedContents {}) ]; + image.rawConfig.Env = { + "PATH" = lib.mkDefault "/run/current-system/sw/bin:/bin:/usr/bin:/usr/local/bin"; + }; }; }