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

Rednix containers don't work. #10

Open
n-ameless opened this issue Feb 17, 2024 · 2 comments
Open

Rednix containers don't work. #10

n-ameless opened this issue Feb 17, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@n-ameless
Copy link

n-ameless commented Feb 17, 2024

When I add RedNix as a flake input and import the container, I get this error.

error:
       … while calling the 'head' builtin

         at /nix/store/m9s94alic7s2r6v47p7lwfj58ibc076a-source/lib/attrsets.nix:960:11:

          959|         || pred here (elemAt values 1) (head values) then
          960|           head values
             |           ^
          961|         else

       … while evaluating the attribute 'value'

         at /nix/store/m9s94alic7s2r6v47p7lwfj58ibc076a-source/lib/modules.nix:809:9:

          808|     in warnDeprecation opt //
          809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          810|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: function 'anonymous lambda' called without required argument 'pkgs'

       at /nix/store/7w4cdnbfmw98digym39n258k5fzaxp99-source/container-config.nix:1:1:

            1| {
             | ^
            2|   pkgs,

When I create the container imperatively with nixos-container commands, I get the following error.

error:
       … while updating the lock file of flake 'github:redcode-labs/rednix/8e974d3c53701c2c2d48ec39fc8a586b022437e4'

       error: cannot write modified lock file of flake 'github:redcode-labs/rednix' (use '--no-write-lock-file' to ignore)
/run/current-system/sw/bin/nixos-container: failed to build container from flake 'github:redcode-labs/rednix'
@unrooted unrooted self-assigned this Feb 18, 2024
@unrooted unrooted added the bug Something isn't working label Feb 18, 2024
@fufexan
Copy link
Contributor

fufexan commented Apr 7, 2024

How do you import the container?

@n-ameless
Copy link
Author

How do you import the container?

I just followed the instructions on the wiki. Both imperative and declarative methods do not work for me, devShells have been fine however.

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

3 participants