Skip to content

Commit b9fb225

Browse files
committed
Fix PATH
1 parent 6496df8 commit b9fb225

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

flake.nix

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
strace
5353
terraform
5454
typos
55+
vim
5556
yq
5657
zip
5758
zstd
@@ -61,7 +62,7 @@
6162
baseDevEnvImage = pkgs.dockerTools.pullImage {
6263
imageName = "ubuntu";
6364
imageDigest = "sha256:7a520eeb6c18bc6d32a21bb7edcf673a7830813c169645d51c949cecb62387d0";
64-
sha256 = "1qa9nq3rir0wnhbs15mwbilzw530x7ih9pq5q1wv3axz44ap6dka";
65+
sha256 = "qEgC+0W4zJjrYAMrAuE6MtQjt9qQv9PgXTPY81nMHyQ=";
6566
finalImageName = "ubuntu";
6667
finalImageTag = "lunar";
6768
};
@@ -91,14 +92,24 @@
9192
chmod 4755 /usr/bin/sudo
9293
'';
9394
};
95+
devEnvPath = "PATH=${pkgs.lib.makeBinPath devShellPackages}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/coder/go/bin";
9496
devEnvImage = pkgs.dockerTools.streamLayeredImage {
9597
name = "codercom/oss-dogfood";
9698
tag = "testing";
9799
fromImage = intermediateDevEnvImage;
100+
contents = [
101+
(
102+
pkgs.writeTextDir
103+
"etc/environment"
104+
''
105+
${devEnvPath}
106+
''
107+
)
108+
];
98109

99110
config = {
100111
Env = [
101-
"PATH=${pkgs.lib.makeBinPath devShellPackages}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/coder/go/bin"
112+
devEnvPath
102113
#This setting prevents Go from using the public checksum database for
103114
# our module path prefixes. It is required because these are in private
104115
# repositories that require authentication.

0 commit comments

Comments
 (0)