]> git.scottworley.com Git - auto-upgrade-with-pinch/commitdiff
Don't write "result" files with user env in $PWD
authorScott Worley <scottworley@scottworley.com>
Wed, 29 Apr 2020 18:04:56 +0000 (11:04 -0700)
committerScott Worley <scottworley@scottworley.com>
Mon, 18 May 2020 18:48:46 +0000 (11:48 -0700)
modules/auto-upgrade.nix

index 216c4baf8fa624e4d2ed08680c21edfa0ccd27d4..cc98ad07d36103481ffcfd8b1861618a68e51b08 100644 (file)
@@ -34,7 +34,7 @@ let
 
         # Build
         in_tmpdir ${config.system.build.nixos-rebuild}/bin/nixos-rebuild build
 
         # Build
         in_tmpdir ${config.system.build.nixos-rebuild}/bin/nixos-rebuild build
-        as_user nix-build '<nixpkgs>' -A ${
+        as_user nix-build --no-out-link '<nixpkgs>' -A ${
           escapeShellArg cfg.userEnvironment.package
         }
 
           escapeShellArg cfg.userEnvironment.package
         }