Set default PATH when image.enableRecommendedContents is true
This commit is contained in:
parent
261d1507d6
commit
9334c8ec11
1 changed files with 5 additions and 2 deletions
|
@ -28,9 +28,12 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = mkIf config.image.enableRecommendedContents {
|
||||||
image.contents = mkIf config.image.enableRecommendedContents [
|
image.contents = [
|
||||||
(pkgs.callPackage recommendedContents {})
|
(pkgs.callPackage recommendedContents {})
|
||||||
];
|
];
|
||||||
|
image.rawConfig.Env = {
|
||||||
|
"PATH" = lib.mkDefault "/run/current-system/sw/bin:/bin:/usr/bin:/usr/local/bin";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue