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
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:
+13
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user