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:
parent
46198ef432
commit
1741ab18a6
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@ -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'
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user