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 has a configuration conflict by default #312

Closed
Kreyren opened this issue Mar 10, 2024 · 4 comments
Closed

install-iso has a configuration conflict by default #312

Kreyren opened this issue Mar 10, 2024 · 4 comments

Comments

@Kreyren
Copy link

Kreyren commented Mar 10, 2024

$ nix build .#nixosConfigurations.installer-gnome.config.formats.install-iso
warning: Git tree '/home/kreyren/src/nixium' is dirty
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

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

       … while evaluating attribute 'buildCommand' of derivation 'nixos-23.11.20240220.526d051-x86_64-linux.iso.iso'

         at /nix/store/bjjfp9f2342bim734yyy498gvwxi301i-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.

To reproduce declare a minimal nixosConfiguration and try to build it with install-iso, for reference this is a flake-parts-style config:

{ self, inputs, config, ... }:

# Build Installer ISO

{
	flake.nixosConfigurations."installer" = inputs.nixpkgs.lib.nixosSystem {
			system = "x86_64-linux";
			pkgs = import inputs.nixpkgs {
				system = "x86_64-linux";
				config.allowUnfree = true;
			};

			modules = [
				self.inputs.nixos-generators.nixosModules.all-formats
			];
		};
}
@Kreyren
Copy link
Author

Kreyren commented Mar 10, 2024

pebcak - i am testing "installer" while trying to build "installer-gnome"

@Kreyren Kreyren closed this as completed Mar 10, 2024
@ParetoOptimalDev
Copy link

ParetoOptimalDev commented Apr 19, 2024

Either pebkac again or there is some issue here. Not sure, searching my config codebase for network.wireless again... iso seems to build fine but not iso-installer.

@ParetoOptimalDev
Copy link

ParetoOptimalDev commented Apr 19, 2024

I believe the issue might be because of this:

systemd.services.wpa_supplicant.wantedBy = lib.mkForce ["multi-user.target"];

So for the case of the installer-iso format you need to not enable networking.networkmanager it seems like.

Or perhaps because nixos-install exists on the iso format it's meant to be this way? Not sure.

@ParetoOptimalDev
Copy link

also, relates to #281

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