[nix-flakes] add ~/.nix-profile/bin to PATH (#51)

See https://github.com/nix-community/docker-nixpkgs/issues/50
This commit is contained in:
Manuel 2024-06-08 08:30:40 +02:00 committed by GitHub
parent 2e4deab4ce
commit e7ea2bae4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -11,6 +11,7 @@
, openssh
, xz
, extraContents ? [ ]
, extraEnv ? [ ]
}:
let
image = dockerTools.buildImageWithNixDb {
@ -58,7 +59,7 @@ let
"PATH=/usr/bin:/bin"
"SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt"
"USER=root"
];
] ++ extraEnv;
};
};
in