[nix-flakes] add ~/.nix-profile/bin to PATH (#51)
See https://github.com/nix-community/docker-nixpkgs/issues/50
This commit is contained in:
parent
2e4deab4ce
commit
e7ea2bae4f
2 changed files with 6 additions and 1 deletions
|
@ -15,4 +15,8 @@ docker-nixpkgs.nix.override {
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
] ++ extraContents;
|
] ++ extraContents;
|
||||||
|
|
||||||
|
extraEnv = [
|
||||||
|
"PATH=/root/.nix-profile/bin:/usr/bin:/bin" # Not sure how to just prepend
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
, openssh
|
, openssh
|
||||||
, xz
|
, xz
|
||||||
, extraContents ? [ ]
|
, extraContents ? [ ]
|
||||||
|
, extraEnv ? [ ]
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
image = dockerTools.buildImageWithNixDb {
|
image = dockerTools.buildImageWithNixDb {
|
||||||
|
@ -58,7 +59,7 @@ let
|
||||||
"PATH=/usr/bin:/bin"
|
"PATH=/usr/bin:/bin"
|
||||||
"SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt"
|
"SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||||
"USER=root"
|
"USER=root"
|
||||||
];
|
] ++ extraEnv;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue