Check darwin home-manager test in CI

This commit is contained in:
Nathan Henrie 2023-05-03 17:25:54 -06:00 committed by Bruno BELANYI
parent 50743bd117
commit 6b4ff3d191
1 changed files with 11 additions and 2 deletions

View File

@ -25,8 +25,17 @@ jobs:
- run: nix build .#doc
- run: nix fmt . -- --check
- run: nix flake check
- run: |
- name: "Install nix-darwin module"
run: |
system=$(nix build --no-link --print-out-paths .#checks.x86_64-darwin.integration)
${system}/activate-user
sudo ${system}/activate
- run: sudo /run/current-system/sw/bin/agenix-integration
- name: "Test nix-darwin module"
run: |
sudo /run/current-system/sw/bin/agenix-integration
- name: "Test home-manager module"
run: |
# Do the job of `home-manager switch` in-line to avoid rate limiting
nix build .#homeConfigurations.integration-darwin.activationPackage
./result/activate
~/agenix-home-integration/bin/agenix-home-integration