-
Notifications
You must be signed in to change notification settings - Fork 0
Init #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Init #2
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
7f0607d
Initial import of a nixos iso?
grahamc cd67b3c
Format lol
grahamc dbc4d41
Add a readme and fh
grahamc 58524f1
iso: switch to networkmanager; add fh
colemickens 1b31ead
Merge pull request #1 from DeterminateSystems/colemickens/nm
grahamc 1f3b8f2
add a ci workflow
grahamc 09e8670
Specify a system and drop fh from the inside
grahamc 070edd9
Run the build on aarch64 too
grahamc 954add6
fmt, build arm
grahamc 9470d12
Merge pull request #3 from DeterminateSystems/push-ouwwyyrumuqv
grahamc 697b3dd
Push release artifacts
grahamc 8dc6448
Add a propose-release workflow
grahamc 981eb99
make the release stable
grahamc 10791cd
Merge pull request #4 from DeterminateSystems/push-svzlonwzxkkl
grahamc a3866e9
Update README.md
grahamc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| name: Build and upload | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [main] | ||
|
|
||
| jobs: | ||
| build: | ||
| strategy: | ||
| matrix: | ||
| runners: | ||
| - runner: UbuntuLatest32Cores128G | ||
| system: x86_64-linux | ||
|
|
||
| - runner: UbuntuLatest32Cores128GArm | ||
| system: aarch64-linux | ||
|
|
||
| runs-on: ${{ matrix.runners.runner }} | ||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: DeterminateSystems/determinate-nix-action@v3 | ||
|
|
||
| - uses: DeterminateSystems/flakehub-cache-action@main | ||
|
|
||
| - run: nix develop --command nixfmt --check . | ||
| if: success() || failure() | ||
|
|
||
| - run: nix build .#packages.${{ matrix.runners.system }}.iso | ||
| if: success() || failure() | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| if: github.ref_type != 'tag' | ||
| with: | ||
| name: nixos-with-determinate-${{ matrix.runners.system }}.iso | ||
| path: ./result/iso/* | ||
| retention-days: 90 | ||
|
|
||
| - name: Release | ||
| uses: softprops/action-gh-release@v2 | ||
| if: github.ref_type == 'tag' | ||
| with: | ||
| prerelease: true | ||
| files: ./result/iso/* | ||
|
|
||
| release: | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| environment: ${{ github.ref_type == 'tag' && 'production' || 'build' }} | ||
| steps: | ||
| - run: "true" | ||
| - name: Release | ||
| uses: softprops/action-gh-release@v2 | ||
| if: github.ref_type == 'tag' | ||
| with: | ||
| prerelease: false |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| reference-id: | ||
| type: string | ||
| required: true | ||
| version: | ||
| type: string | ||
| required: true | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| propose-release: | ||
| uses: DeterminateSystems/propose-release/.github/workflows/workflow.yml@main | ||
| permissions: | ||
| id-token: "write" | ||
| contents: "write" | ||
| pull-requests: write | ||
| with: | ||
| reference-id: ${{ inputs.reference-id }} | ||
| version: ${{ inputs.version }} |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| # NixOS ISOs with Determinate Nix | ||
|
|
||
| This repo houses the build logic for [Determinate Systems][detsys]' official ISO for [NixOS]. | ||
| Our ISOs are available for these systems: | ||
|
|
||
| | System | Nix system name | | ||
| | :------------ | :-------------- | | ||
| | x86 Linux | `x86_64-linux` | | ||
| | aarch64 Linux | `aarch64-linux` | | ||
|
|
||
| On both systems, the ISOs have these tools installed: | ||
|
|
||
| - [Determinate Nix][det-nix], Determinate Systems' validated and secure [Nix] distribution for enterprises. | ||
| This includes [Determinate Nixd][dnixd], a utility that enables you to log in to [FlakeHub] using only this command (amongst other tasks): | ||
|
|
||
| ```shell | ||
| determinate-nixd login | ||
| ``` | ||
|
|
||
| Once logged in, your host can access [FlakeHub Cache][cache] and [private flakes][private-flakes] for your organization. | ||
|
|
||
| - [fh], the CLI for [FlakeHub]. | ||
| You can use fh for things like [applying][fh-apply-nixos] NixOS configurations uploaded to [FlakeHub Cache][cache]. | ||
| Here's an example: | ||
|
|
||
| ```shell | ||
| determinate-nixd login | ||
| fh apply nixos "my-org/my-flake/*#nixosConfigurations.my-nixos-configuration-output" | ||
| ``` | ||
|
|
||
| Note: this NixOS installer image is identical to NixOS's ISOs, but with flakes enabled by default via Determinate Nix and NetworkManager being enabled instead of bare WPA Supplicant. | ||
| [ami]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html | ||
| [fh-apply-nixos]: https://docs.determinate.systems/flakehub/cli#apply-nixos | ||
| [cache]: https://docs.determinate.systems/flakehub/cache | ||
| [demo]: https://github.com/determinatesystems/demo | ||
| [det-nix]: https://docs.determinate.systems/determinate-nix | ||
| [detsys]: https://determinate.systems | ||
| [dnixd]: https://docs.determinate.systems/determinate-nix#determinate-nixd | ||
| [ec2]: https://aws.amazon.com/ec2 | ||
| [fh]: https://docs.determinate.systems/flakehub/cli | ||
| [fh-apply]: https://docs.determinate.systems/flakehub/cli#apply | ||
| [flakehub]: https://flakehub.com | ||
| [nix]: https://docs.determinate.systems/determinate-nix | ||
| [nixos]: https://zero-to-nix.com/concepts/nixos | ||
| [opentofu]: https://opentofu.org | ||
| [private-flakes]: https://docs.determinate.systems/flakehub/private-flakes | ||
| [ssm]: https://aws.amazon.com/systems-manager | ||
| [sts]: https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html | ||
| [terraform]: https://terraform.io | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.