Skip to content

Commit

Permalink
feat(build): #944 user vars
Browse files Browse the repository at this point in the history
- Point user vars to their right place,
- `doas -u makes` already updates USER and
  HOME to the makes values

Signed-off-by: Kevin Amado <kamadorueda@gmail.com>
  • Loading branch information
kamadorueda committed Sep 30, 2022
1 parent bc3779b commit 9b8f8ae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions makes/container-image/main.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
inputs.nixpkgs.dockerTools.buildImage {
config = {
Env = [
"HOME=/home/root"
"PATH=/bin:/nix/var/nix/profiles/default/bin"
"USER=root"

# Certificate authorities
"GIT_SSL_CAINFO=/etc/ssl/certs/ca-bundle.crt"
"HOME=/home/makes"
"NIX_PATH=/nix/var/nix/profiles/per-user/makes/channels"
"NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt"
"PATH=/bin:/nix/var/nix/profiles/default/bin"
"SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt"
"SYSTEM_CERTIFICATE_PATH=/etc/ssl/certs/ca-bundle.crt"
"USER=makes"
];
User = "root:root";
WorkingDir = "/";
Expand Down

0 comments on commit 9b8f8ae

Please sign in to comment.