Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FYI nix unstable is broken right now, avoid updating #296

Closed
codygman opened this issue May 24, 2021 · 5 comments
Closed

FYI nix unstable is broken right now, avoid updating #296

codygman opened this issue May 24, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@codygman
Copy link
Contributor

Just tested with flk core to rule out it being my config:


❯ flk NixOS build
warning: Git tree '/home/cody/try-flake-core-2021-05-23/flk' is dirty
building the system configuration...
warning: Git tree '/home/cody/try-flake-core-2021-05-23/flk' is dirty
error: builder for '/nix/store/jfxy1f4xlylqjk64m3dbrg1rg4bz5f3f-system-path.drv' failed with exit code 1;
       last 2 log lines:
       > created 6190 symlinks in user environment
       > install-info: Cannot allocate memory for gzip -d
       For full logs, run 'nix log /nix/store/jfxy1f4xlylqjk64m3dbrg1rg4bz5f3f-system-path.drv'.
error: 1 dependencies of derivation '/nix/store/gvay16md6qj0rgl6gx0v7cd94p1z6m48-nixos-system-NixOS-21.05.20210315.266dc8c.drv' failed to build

People are working on it, this is the related issue: NixOS/nixpkgs#124215

@codygman codygman added the bug Something isn't working label May 24, 2021
@codygman
Copy link
Contributor Author

Workaround (untested):

nix.sandboxPaths = [ "/bin/sh" ];

source: NixOS/nixpkgs#124215 (comment)

@codygman
Copy link
Contributor Author

Workaround isn't working placing that nix setting here, but this is probably the wrong place:

❯ git diff lib/devos/mkHosts.nix
diff --git a/lib/devos/mkHosts.nix b/lib/devos/mkHosts.nix
index 8e2a799..ee2abb2 100644
--- a/lib/devos/mkHosts.nix
+++ b/lib/devos/mkHosts.nix
@@ -33,6 +33,7 @@ let
 
       hardware.enableRedistributableFirmware = lib.mkDefault true;
 
+      nix.sandboxPaths = [ "/bin/sh" ];
       nix.nixPath = [
         "nixpkgs=${nixos}"
         "nixos-config=${self}/lib/compat/nixos"

devos2  big-mass-of-changes 「↪ 𝚫 ✔ 📁 」  ⎔ on  (us-east-1) 
❯ nix-shell --pure --run "nix show-config | grep sandbox-paths"
warning: Git tree '/home/cody/devos2' is dirty
sandbox-paths = 

@codygman
Copy link
Contributor Author

codygman commented May 24, 2021

I got around it by doing the other fix suggested in that thread:

❯ git diff lib/devos/mkHosts.nix
diff --git a/lib/devos/mkHosts.nix b/lib/devos/mkHosts.nix
index 8e2a799..5ffa4f9 100644
--- a/lib/devos/mkHosts.nix
+++ b/lib/devos/mkHosts.nix
@@ -38,6 +38,7 @@ let
         "nixos-config=${self}/lib/compat/nixos"
         "home-manager=${inputs.home}"
       ];
+      documentation.info.enable = lib.mkForce false;

Then sandboxPaths was fixed and I could switch to the newest nix unstable that fixes this issue (I think, we'll see).

@blaggacao
Copy link
Contributor

blaggacao commented May 25, 2021

Thanks for your report and links to upstream!

At this moment, is there anything left for us to track here?

@codygman
Copy link
Contributor Author

Thanks for your report and links to upstream!

At this moment, is there anything left for us to track here?

Nope, things are all good for me now and I assume the windows for others to encounter this is closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants