Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,24 @@ on:
branches: main

jobs:
eval:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Check all configurations evaluate
run: |
for host in glyph spore zeta; do
echo "Evaluating $host..."
nix eval .#nixosConfigurations.$host.config.system.build.toplevel.drvPath
done
echo "Evaluating Rhizome..."
nix eval .#darwinConfigurations.Rhizome.system.drvPath

build:
needs: eval
strategy:
fail-fast: false
matrix:
Expand Down
6 changes: 6 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ nixos-rebuild switch --flake .#hostname # Linux
nixos-rebuild switch --flake .#spore --target-host root@spore --build-host localhost
```

**Checking changes before committing:**
```bash
nix-flake eval nixosConfigurations.hostname.config.system.build.toplevel.drvPath
```
Evaluates a host's configuration without building it. Catches option conflicts and type errors fast — run this after editing any NixOS module or host config.

**Flake management:**
```bash
nix flake update --commit-lock-file
Expand Down
4 changes: 2 additions & 2 deletions hosts/spore/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@

# Stricter GC due to limited disk space (30 GB)
nix.gc = {
dates = "daily";
options = "--delete-older-than 7d";
dates = lib.mkForce "daily";
options = lib.mkForce "--delete-older-than 7d";
};

nix.settings = {
Expand Down
Loading