From 4a913db86998316241b3ba5175fd4c794bee2d29 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Sun, 10 May 2026 01:38:58 -0500 Subject: [PATCH] Add /etc/profile to builder --- img/builder.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/img/builder.nix b/img/builder.nix index f8c2e06..24892ee 100644 --- a/img/builder.nix +++ b/img/builder.nix @@ -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