-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.24 KB
/
Copy pathevaluate-home-manager.yml
File metadata and controls
43 lines (36 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Evaluate configurations
on:
workflow_dispatch:
pull_request:
jobs:
evaluate-home-manager-flake:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
system: x86_64-linux
- os: macos-latest
system: aarch64-darwin
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Lix
uses: DeterminateSystems/nix-installer-action@main
with:
source-url: https://install.lix.systems/lix/lix-installer-${{ matrix.system }}
logger: pretty
- name: Nix Magic Cache
uses: DeterminateSystems/flakehub-cache-action@main
- name: Evaluate Home Manager configurations
run: nix build -f .config/nix/parts/programs/ciHomeManagerConfigurations.nix --print-build-logs
- if: matrix.os == 'macos-latest'
name: Check Nix Darwin configurations
run: |
export HOSTNAME=eos
sudo scutil --set HostName "$HOSTNAME"
sudo scutil --set LocalHostName "$HOSTNAME"
sudo scutil --set ComputerName "$HOSTNAME"
dscacheutil -flushcache
nix run nix-darwin -- check --flake ".config/nix" -L --print-build-logs