mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 16:27:03 +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" 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'
|
||||||
- run: |
|
- run: |
|
||||||
./result/sw/bin/darwin-rebuild switch --flake ./modules/examples#darwinConfigurations.simple
|
./result/sw/bin/darwin-rebuild switch --flake ./modules/examples#simple
|
||||||
- run: |
|
- run: |
|
||||||
. /etc/static/bashrc
|
. /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
|
fi
|
||||||
if [ -z "$flakeAttr" ]; then
|
if [ -z "$flakeAttr" ]; then
|
||||||
flakeAttr=$(hostname)
|
flakeAttr=$(hostname)
|
||||||
flakeAttr=darwinConfigurations.${flakeAttr%.local}
|
|
||||||
fi
|
fi
|
||||||
|
flakeAttr=darwinConfigurations.${flakeAttr%.local}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$flake" ]; then
|
if [ -n "$flake" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue