From 757c411eae1d75d2e9e4e003de1635716f65437d Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Tue, 16 Apr 2024 23:44:15 -0700 Subject: Workaround annoying TMPDIR handling --- scripts/pretty-rebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/pretty-rebuild') diff --git a/scripts/pretty-rebuild b/scripts/pretty-rebuild index 30025bb..9822acb 100755 --- a/scripts/pretty-rebuild +++ b/scripts/pretty-rebuild @@ -1,10 +1,11 @@ #!/usr/bin/env nix-shell #!nix-shell -i zsh --packages zsh +# sudo is used for nixos-rebuild below due to: https://github.com/NixOS/nix/issues/7154 cd /etc/nixos && \ nix flake update && \ cd && \ - nixos-rebuild switch --upgrade --show-trace && \ + sudo env TMPDIR=/nix/tmp nixos-rebuild switch --upgrade --show-trace && \ echo && \ nixos-rebuild list-generations | cat && \ echo && \ -- cgit v1.2.3