Add /etc/profile to builder
buildbot/nix-eval Build done.
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
Build images / Build (immich) (push) Successful in 1m12s
Build images / Build (vm-test) (push) Has been cancelled
Build images / Build (sword-container-builder) (push) Has been cancelled
Build images / Build (builder) (push) Has been cancelled
Build images / Build (bitwarden) (push) Has been cancelled

This commit is contained in:
Greg Hellings
2026-05-10 01:38:58 -05:00
parent 2313eb1f3d
commit 4a913db869
+13 -1
View File
@@ -35,10 +35,19 @@ let
bashrc = writeTextFile {
name = "bashrc";
text = ''
echo "Loading bashrc"
export PATH=${lib.makeBinPath contents}
'';
destination = "/etc/bashrc";
};
profile = writeTextFile {
name = "profile";
text = ''
echo "Loading profile"
export PATH=${lib.makeBinPath contents}
'';
destination = "/etc/profile";
};
contents = lib'.basePackages ++ [
buildah
(fakeNss.override {
@@ -65,7 +74,10 @@ lib'.mkImage {
"PATH=${lib.makeBinPath contents}"
];
# Set this explicitly so that we avoid infinite recursion
contents = contents ++ [ bashrc ];
contents = contents ++ [
bashrc
profile
];
extraCommands = ''
mkdir -p tmp
mkdir -p var/tmp