-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
If any issues are encountered with this Docker image (or help desired) please file an issue on Github: https://github.com/heywoodlh/dockerfiles/issues | ||
For ideas on usage, look at my Fish functions in my .dotfiles: https://github.com/heywoodlh/.dotfiles/tree/master/config/fish/functions | ||
Determinate Systems Nix image with Flakes enabled by default. | ||
|
||
Feel free to ask for any help and I will try to respond as quick and as kindly as I can but I make no guarantee that I will provide support. | ||
Dockerfile and build resources are here: https://github.com/heywoodlh/dockerfiles/tree/master/nix | ||
|
||
GitHub Action to build this on a recurring basis: https://github.com/heywoodlh/actions/blob/master/.github/workflows/nix-buildx.yml | ||
|
||
## Usage | ||
|
||
``` | ||
docker run -it --rm docker.io/heywoodlh/nix:latest nix run nixpkgs#hello | ||
``` | ||
|
||
There is also a static Nix image with the `static` tag: | ||
|
||
``` | ||
docker run -it --rm docker.io/heywoodlh/nix:static nix run nixpkgs#hello | ||
``` | ||
|
||
The `static` image can be used as a base to redistribute the static Nix binary for other Linux systems, as well: | ||
|
||
``` | ||
mkdir -p /tmp/nix-bin | ||
docker run -it --rm -v /tmp/nix-bin:/tmp/nix-bin docker.io/heywoodlh/nix:static cp /usr/bin/nix /tmp/nix-bin/nix | ||
/tmp/nix-bin/nix --version | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= | ||
trusted-substituters = https://cache.nixos.org | ||
trusted-users = root @wheel @nix | ||
extra-experimental-features = nix-command flakes | ||
build-users-group = |