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

install-iso collides in networking config #281

Open
quinn-dougherty opened this issue Nov 30, 2023 · 1 comment
Open

install-iso collides in networking config #281

quinn-dougherty opened this issue Nov 30, 2023 · 1 comment

Comments

@quinn-dougherty
Copy link

quinn-dougherty commented Nov 30, 2023

My config is a standard networking.networkmanager, it does not have networking.wireless.

Here is the log

╰─>$ nix build .#nixosConfigurations.grindenstern.config.formats.install-iso 
error:
       … while calling the 'derivationStrict' builtin

         at /derivation-internal.nix:9:12:

            8|
            9|   strict = derivationStrict drvAttrs;
             |            ^
           10|

       … while evaluating derivation 'nixos-24.05.20231127.8cfef69-x86_64-linux.iso.iso'
         whose name attribute is located at /nix/store/mdl8yp9lzzzjla69qm42sk96p15vym7d-source/pkgs/stdenv/generic/make-derivation.nix:348:7

       … while evaluating attribute 'buildCommand' of derivation 'nixos-24.05.20231127.8cfef69-x86_64-linux.iso.iso'                                             

         at /nix/store/mdl8yp9lzzzjla69qm42sk96p15vym7d-source/pkgs/build-support/trivial-builders/default.nix:87:14:

           86|       enableParallelBuilding = true;
           87|       inherit buildCommand name;
             |              ^
           88|       passAsFile = [ "buildCommand" ]

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

       error:
       Failed assertions:
       - You can not use networking.networkmanager with networking.wireless.
       Except if you mark some interfaces as <literal>unmanaged</literal> by NetworkManager.
┬─[qd@grindenstern:~/p/declare]─[07:24:16 PM]─[G:main=]
╰─>$ nix build .#nixosConfigurations.grindenstern.config.formats.iso
evaluating derivation 'git+file:///home/qd/projects/declare#nixosConfigurations.grindenstern.c
error: interrupted by the user
┬─[qd@grindenstern:~/p/declare]─[07:24:49 PM]─[G:main=]
╰─>$ nix build .#nixosConfigurations.grindenstern.config.formats.install-iso
error: 'nixosConfigurations.grindenstern.config.formats.install-iso.drvPath' is not a string
┬─[qd@grindenstern:~/p/declare]─[07:24:53 PM]─[G:main=]
╰─>$ nix build .#nixosConfigurations.grindenstern.config.formats.install-iso --show-trace
error: 'nixosConfigurations.grindenstern.config.formats.install-iso.drvPath' is not a string

I don't know how to get --show-trace.

.formats.iso seems to be working.

EDIT: I commented out networkmanager.enable = true; and the build is happy and the ....drvPath is not a string error is also gone.

@ParetoOptimalDev
Copy link

ParetoOptimalDev commented Apr 22, 2024

For the host n I was building the install-iso for I had to add this patch:

networking.networkmanager.enable = lib.mkForce false;

Since in my case the jovian nixos module was what was enabling networkmanager you have to force it somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants