privaterev
This commit is contained in:
parent
7d18ec2ac5
commit
2775868542
1 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,8 @@ REV=$(curl https://api.github.com/repos/thexyno/nixos-config/branches/main | jq
|
|||
if [[ $(uname) == "Linux" ]]; then
|
||||
sudo nixos-rebuild switch --flake "github:thexyno/nixos-config?rev=$REV"
|
||||
else # Darwin
|
||||
PRIVATEREV=$(git ls-remote ssh://git@github.com/thexyno/nixos-config-private.git HEAD | awk '{print($1)}')
|
||||
darwin-rebuild switch \
|
||||
--flake "github:thexyno/nixos-config?rev=$REV" \
|
||||
--override-input private 'git+ssh://git@github.com/thexyno/nixos-config-private'
|
||||
--override-input private "git+ssh://git@github.com/thexyno/nixos-config-private?rev=$PRIVATEREV"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue