mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 16:27:03 +00:00
add workaround for flake test on github actions
This commit is contained in:
parent
46198ef432
commit
1741ab18a6
2 changed files with 3 additions and 1 deletions
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
|
@ -41,7 +41,6 @@ jobs:
|
||||||
echo "FIXME workaround channel permission error"
|
echo "FIXME workaround channel permission error"
|
||||||
nix-shell -A installer
|
nix-shell -A installer
|
||||||
echo "TODO installed doesn't support flakes, handle multi-user install"
|
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: |
|
- 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" registry add darwin $PWD'
|
||||||
nix-shell -p nixFlakes --run 'nix --experimental-features "nix-command flakes" build ./modules/examples#darwinConfigurations.simple.system'
|
nix-shell -p nixFlakes --run 'nix --experimental-features "nix-command flakes" build ./modules/examples#darwinConfigurations.simple.system'
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
let
|
let
|
||||||
configuration = { pkgs, ... }: {
|
configuration = { pkgs, ... }: {
|
||||||
nix.package = pkgs.nixFlakes;
|
nix.package = pkgs.nixFlakes;
|
||||||
|
|
||||||
|
# FIXME: for github actions, this shouldn't be in the example.
|
||||||
|
services.nix-daemon.enable = true;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue