From ceab3eb2094852f11fe1557532bb79a6ee9087fa Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Mon, 25 Apr 2022 01:53:28 -0400 Subject: [PATCH] fix(bud): regression in nixos-rebuild See: https://github.com/NixOS/nixpkgs/issues/169193 https://github.com/NixOS/nix/issues/6443 --- shell/bud/buildthis.bash | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shell/bud/buildthis.bash b/shell/bud/buildthis.bash index 7b648ad..c6c6b28 100644 --- a/shell/bud/buildthis.bash +++ b/shell/bud/buildthis.bash @@ -3,7 +3,5 @@ attr="$FLAKEROOT#$HOST" if [ -x /run/wrappers/bin/sudo ]; then export PATH=/run/wrappers/bin:$PATH - sudo nixos-rebuild --flake "$attr" "${@:-switch}" -else - nixos-rebuild --flake "$attr" "${@:-switch}" fi +nixos-rebuild --flake "$attr" --use-remote-sudo "${@:-switch}"