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 {
|
bashrc = writeTextFile {
|
||||||
name = "bashrc";
|
name = "bashrc";
|
||||||
text = ''
|
text = ''
|
||||||
|
echo "Loading bashrc"
|
||||||
export PATH=${lib.makeBinPath contents}
|
export PATH=${lib.makeBinPath contents}
|
||||||
'';
|
'';
|
||||||
destination = "/etc/bashrc";
|
destination = "/etc/bashrc";
|
||||||
};
|
};
|
||||||
|
profile = writeTextFile {
|
||||||
|
name = "profile";
|
||||||
|
text = ''
|
||||||
|
echo "Loading profile"
|
||||||
|
export PATH=${lib.makeBinPath contents}
|
||||||
|
'';
|
||||||
|
destination = "/etc/profile";
|
||||||
|
};
|
||||||
contents = lib'.basePackages ++ [
|
contents = lib'.basePackages ++ [
|
||||||
buildah
|
buildah
|
||||||
(fakeNss.override {
|
(fakeNss.override {
|
||||||
@@ -65,7 +74,10 @@ lib'.mkImage {
|
|||||||
"PATH=${lib.makeBinPath contents}"
|
"PATH=${lib.makeBinPath contents}"
|
||||||
];
|
];
|
||||||
# Set this explicitly so that we avoid infinite recursion
|
# Set this explicitly so that we avoid infinite recursion
|
||||||
contents = contents ++ [ bashrc ];
|
contents = contents ++ [
|
||||||
|
bashrc
|
||||||
|
profile
|
||||||
|
];
|
||||||
extraCommands = ''
|
extraCommands = ''
|
||||||
mkdir -p tmp
|
mkdir -p tmp
|
||||||
mkdir -p var/tmp
|
mkdir -p var/tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user