nix-community / nixos-generators

Collection of image builders [maintainer=@Lassulus]
MIT License
1.76k stars 136 forks source link

The FQDN is required but cannot be determined. Please make sure that #366

Open shymega opened 2 weeks ago

shymega commented 2 weeks ago

I can't build Proxmox LXC images at the moment. (config)

It looks like an upstream Nixpkgs issue, but I'm opening an issue here for reference.

I will do some digging...

Output:

$ nix build .\#packages.MTX-SRV
error:
       … while calling the 'derivationStrict' builtin

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

       … while evaluating derivation 'tarball'
         whose name attribute is located at /nix/store/5z81la6av4j0ckp0w1949lxiwjyyykks-source/pkgs/stdenv/generic/make-derivation.nix:333:7

       … while evaluating attribute 'buildCommand' of derivation 'tarball'

         at /nix/store/5z81la6av4j0ckp0w1949lxiwjyyykks-source/pkgs/build-support/trivial-builders/default.nix:68:16:

           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

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

       error: The FQDN is required but cannot be determined. Please make sure that
       both networking.hostName and networking.domain are set properly.
Mic92 commented 2 weeks ago

Yep. Needs to be fixed in nixpkgs.

shymega commented 1 week ago

This was my fix.

I'm not sure if Nixpkgs needs the fix.