{"id":22292626,"url":"https://github.com/ericnorris/nix-channel-test","last_synced_at":"2025-03-25T21:47:01.552Z","repository":{"id":183552225,"uuid":"669655135","full_name":"ericnorris/nix-channel-test","owner":"ericnorris","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-25T19:17:06.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T19:16:20.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericnorris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-23T02:07:55.000Z","updated_at":"2023-07-24T14:36:26.000Z","dependencies_parsed_at":"2023-07-24T23:15:40.290Z","dependency_job_id":null,"html_url":"https://github.com/ericnorris/nix-channel-test","commit_stats":null,"previous_names":["ericnorris/nix-channel-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericnorris%2Fnix-channel-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericnorris%2Fnix-channel-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericnorris%2Fnix-channel-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericnorris%2Fnix-channel-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericnorris","download_url":"https://codeload.github.com/ericnorris/nix-channel-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245550540,"owners_count":20633872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T17:23:12.255Z","updated_at":"2025-03-25T21:47:01.526Z","avatar_url":"https://github.com/ericnorris.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nix-channel-test\n\nTODO: repeat this, but with flakes.\n\nSteps taken:\n\n- [x] Create public github repository (this)\n- [x] Set up GCS bucket\n- [x] Set up service account w/ rw access to bucket\n- [x] Set up service account w/ ro access to the bucket\n- [x] Create an HMAC key for the rw service account\n- [x] Create an HMAC key for the ro service account\n- [x] Write a nix expression that creates an example binary\n- [x] Write GitHub actions code to publish the built nix files to GCS (as an S3 bucket)\n- [x] Install nix somewhere\n  ```\n  curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install\n  ```\n- [x] Add the public github repository as a channel\n\n  ```\n  nix-channel --add https://github.com/ericnorris/nix-channel-test/archive/main.tar.gz etsypkgs\n  nix-channel --update\n  ```\n- [x] Set up ro S3 credentials for `root` at `/root/.aws/credentials`\n- [x] Install the example binary\n  ```\n  nix profile install --builders '' --extra-substituters 's3://\u003cbucket\u003e?endpoint=https://storage.googleapis.com\u0026trusted=true' --debug --impure --expr 'import \u003cetsypkgs\u003e' 'hello'\n  ```\n\nResult:\n\n```\nubuntu-2204-f87ea0:~# hello\nHello world from a custom Nix channel\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericnorris%2Fnix-channel-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericnorris%2Fnix-channel-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericnorris%2Fnix-channel-test/lists"}