Skip to content

Commit

Permalink
configure cachix signing and upload in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Woolford committed Mar 11, 2025
1 parent 2da42e4 commit aa700c2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/nixosbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ jobs:
- uses: cachix/install-nix-action@v25
with:
extra_nix_config: experimental-features = nix-command flakes
- uses: cachix/cachix-action@v14
with:
name: himmelblau
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix flake check
- run: nix build --max-jobs 1 ".#himmelblau" ".#himmelblau-desktop"
- run: nix build --no-link --print-out-paths --max-jobs 1 ".#himmelblau" ".#himmelblau-desktop" | cachix push himmelblau
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ Himmelblau provides 2 packages and a module:
* `himmelblau.packages.<arch>.himmelblau-desktop`: The daemon and GUI tools for 2FA signin within a (GTK) desktop environment.
* `himmelblau.modules.himmelblau`: A NixOS Module that provides the most common options and service definitions.

#### Enabling the himmelblau cachix cache

Himmelblau builds our packages in CI and uploads them to [Cachix](https://www.cachix.org/) so you don't have to compile the software on every update.
We sign these binaries before upload, and the cachix client will configure nix to trust our public signing key.

```sh
$ nix profile install 'nixpkgs#cachix'
$ cachix use himmelblau
```

#### Classic Nixos configurations

Classic NixOS configurations can use the `builtins.getFlake` function if they have enabled `flakes` compatability.
Expand Down

0 comments on commit aa700c2

Please sign in to comment.