1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-09-11 12:49:18 +03:00

add workaround for flake test on github actions

This commit is contained in:
Daiderd Jordan 2020-10-18 16:13:07 +02:00
parent 46198ef432
commit 1741ab18a6
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,6 @@ jobs:
echo "FIXME workaround channel permission error"
nix-shell -A installer
echo "TODO installed doesn't support flakes, handle multi-user install"
nix-shell -p gnused --run 'sed -i "s/# services.nix-daemon.enable/services.nix-daemon.enable/" modules/examples/simple.nix'
- run: |
nix-shell -p nixFlakes --run 'nix --experimental-features "nix-command flakes" registry add darwin $PWD'
nix-shell -p nixFlakes --run 'nix --experimental-features "nix-command flakes" build ./modules/examples#darwinConfigurations.simple.system'

View File

@ -11,6 +11,9 @@
let
configuration = { pkgs, ... }: {
nix.package = pkgs.nixFlakes;
# FIXME: for github actions, this shouldn't be in the example.
services.nix-daemon.enable = true;
};
in
{