RedNix icon indicating copy to clipboard operation
RedNix copied to clipboard

Rednix containers don't work.

Open ghost opened this issue 1 year ago • 3 comments

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'

ghost avatar Feb 17 '24 06:02 ghost

How do you import the container?

fufexan avatar Apr 07 '24 15:04 fufexan

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.

ghost avatar Apr 12 '24 14:04 ghost

I have the exact same issue. I added it to my inputs in my flake.nix

rednix = {
  url = "github:redcode-labs/
  inputs.nixpkgs.follows = "nixpkgs";
};

I then imported it in my home.nix

imports = [
  [truncated]
  inputs.rednix.container
];```

axelhd avatar May 25 '25 18:05 axelhd