mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 08:17:01 +00:00
always prefix flake with darwinConfigurations
This commit is contained in:
parent
c8b38819b4
commit
8800c4717d
2 changed files with 3 additions and 3 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
@ -45,7 +45,7 @@ jobs:
|
|||
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'
|
||||
- run: |
|
||||
./result/sw/bin/darwin-rebuild switch --flake ./modules/examples#darwinConfigurations.simple
|
||||
./result/sw/bin/darwin-rebuild switch --flake ./modules/examples#simple
|
||||
- run: |
|
||||
. /etc/static/bashrc
|
||||
darwin-rebuild build --flake ./modules/examples#darwinConfigurations.simple
|
||||
darwin-rebuild build --flake ./modules/examples#simple
|
||||
|
|
|
@ -121,8 +121,8 @@ if [ -n "$flake" ]; then
|
|||
fi
|
||||
if [ -z "$flakeAttr" ]; then
|
||||
flakeAttr=$(hostname)
|
||||
flakeAttr=darwinConfigurations.${flakeAttr%.local}
|
||||
fi
|
||||
flakeAttr=darwinConfigurations.${flakeAttr%.local}
|
||||
fi
|
||||
|
||||
if [ -n "$flake" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue