removed git tracking requirement from rebuilds
This commit is contained in:
parent
22ef0e838d
commit
8adc6b97cd
|
@ -51,4 +51,4 @@ mkdir -p $temp$SOPS_AGE_KEY_DIRECTORY
|
||||||
cp -r $SOPS_AGE_KEY_DIRECTORY/* $temp$SOPS_AGE_KEY_DIRECTORY
|
cp -r $SOPS_AGE_KEY_DIRECTORY/* $temp$SOPS_AGE_KEY_DIRECTORY
|
||||||
|
|
||||||
# commit number in this is because the main branch of nixos-anywhere is broken right now
|
# commit number in this is because the main branch of nixos-anywhere is broken right now
|
||||||
nix run github:nix-community/nixos-anywhere/b3b6bfebba35d55fba485ceda588984dec74c54f -- --extra-files $temp --flake ".#$flake" ${user:-nixos}@$target
|
nix run github:nix-community/nixos-anywhere/b3b6bfebba35d55fba485ceda588984dec74c54f -- --extra-files $temp --flake "path:.#$flake" ${user:-nixos}@$target
|
||||||
|
|
|
@ -54,11 +54,13 @@ flake=${flake:-$target}
|
||||||
mode=${mode:-switch}
|
mode=${mode:-switch}
|
||||||
user=${user:-$USER}
|
user=${user:-$USER}
|
||||||
|
|
||||||
|
# path: prefixes on rebuilds here make nix not treat this flake like it has a git repo so we can
|
||||||
|
# access secret files in the submodule this is kinda bad and we should find a way to not need it
|
||||||
if [[ "$target" == "$(hostname)" ]];
|
if [[ "$target" == "$(hostname)" ]];
|
||||||
then
|
then
|
||||||
nixos-rebuild $mode --use-remote-sudo --flake .#$flake
|
nixos-rebuild $mode --use-remote-sudo --flake path:.#$flake
|
||||||
else
|
else
|
||||||
nixos-rebuild $mode --use-remote-sudo --target-host $user@$target --flake .#$flake
|
nixos-rebuild $mode --use-remote-sudo --target-host $user@$target --flake path:.#$flake
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "result" ];
|
if [ -d "result" ];
|
||||||
|
|
Loading…
Reference in a new issue