Set default PATH when image.enableRecommendedContents is true

This commit is contained in:
Robert Hensing 2022-12-09 17:11:39 +01:00
parent 261d1507d6
commit 9334c8ec11

View File

@ -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";
};
};
}