https://github.com/ericnorris/nix-channel-test
https://github.com/ericnorris/nix-channel-test
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ericnorris/nix-channel-test
- Owner: ericnorris
- Created: 2023-07-23T02:07:55.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T19:17:06.000Z (almost 3 years ago)
- Last Synced: 2025-01-30T19:16:20.361Z (over 1 year ago)
- Language: Nix
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nix-channel-test
TODO: repeat this, but with flakes.
Steps taken:
- [x] Create public github repository (this)
- [x] Set up GCS bucket
- [x] Set up service account w/ rw access to bucket
- [x] Set up service account w/ ro access to the bucket
- [x] Create an HMAC key for the rw service account
- [x] Create an HMAC key for the ro service account
- [x] Write a nix expression that creates an example binary
- [x] Write GitHub actions code to publish the built nix files to GCS (as an S3 bucket)
- [x] Install nix somewhere
```
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
```
- [x] Add the public github repository as a channel
```
nix-channel --add https://github.com/ericnorris/nix-channel-test/archive/main.tar.gz etsypkgs
nix-channel --update
```
- [x] Set up ro S3 credentials for `root` at `/root/.aws/credentials`
- [x] Install the example binary
```
nix profile install --builders '' --extra-substituters 's3://?endpoint=https://storage.googleapis.com&trusted=true' --debug --impure --expr 'import ' 'hello'
```
Result:
```
ubuntu-2204-f87ea0:~# hello
Hello world from a custom Nix channel
```