Skip to content

Commit

Permalink
chore: try run nix-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
squirmy committed Feb 28, 2024
1 parent fe4a29f commit dbd6a06
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ jobs:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: ${{ matrix.template }}
- name: Build ${{ matrix.template }}
run: |
cd ${{ matrix.template }}
echo $HOME
echo $USER
nix run nixpkgs#sd 'username = "username"' 'username = "runner"' flake.nix
nix run nixpkgs#sd 'homeDirectory = "/Users/username"' 'homeDirectory = "/Users/runner"' flake.nix
# Github Action runners do not support M1 yet.
# nix run nixpkgs#sd 'nixpkgs.hostPlatform = "aarch64-darwin"' 'nixpkgs.hostPlatform = "x86_64-darwin"' flake.nix
# nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake .#"${hostname}"
nix run nixpkgs#sd 'nixpkgs.hostPlatform = "aarch64-darwin"' 'nixpkgs.hostPlatform = "x86_64-darwin"' flake.nix
nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake .#hostname

0 comments on commit dbd6a06

Please sign in to comment.