cc @samueldr @vcunat is this a release blocker?
$ nixos-option networking.useDHCP
This attribute set contains:
error:
syntax
error,
unexpected
:,
expecting
Run nixos-option on current 18.09 beta (7f70ebf30b8). Unstable seems to be affected too.
Seems to be a fairly simple case of nixos-option capturing all the output of nix-instantiate, including the missing-NIX_PATH-entry warning. I'll have a look at fixing this.
"x86_64-linux"Linux 4.14.71, NixOS, 18.09beta696.7f70ebf30b8 (Jellyfish)yesyesnix-env (Nix) 2.1.1"nixos-18.09beta696.7f70ebf30b8, nixos-unstable-19.03pre154105.e1605d9b21b"""""/nix/var/nix/profiles/per-user/root/channels/nixosOutput on my system:
Value:
true
Default:
true
Example:
error: attribute 'example' missing
Description:
"Whether to use DHCP to obtain an IP address and other\nconfiguration for all network interfaces that are not manually\nconfigured.\n"
Declared by:
"/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/tasks/network-interfaces.nix"
Defined by:
"/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/tasks/network-interfaces.nix"
(Not suggesting that there is no issue, btw. )
~ $ nixos-version && nixos-option networking.useDHCP
18.09.git.c922e20 (Jellyfish)
Value:
false
Default:
true
Example:
error: attribute 'example' missing
Description:
"Whether to use DHCP to obtain an IP address and other\nconfiguration for all network interfaces that are not manually\nconfigured.\n"
Declared by:
"/etc/nixos/nixpkgs/nixos/modules/tasks/network-interfaces.nix"
Defined by:
"/etc/nixos/nixpkgs/nixos/modules/services/networking/networkmanager.nix"
Weird!
Works fine on 18.09.git.7f70ebf (Jellyfish) too here.
Seems to be a fairly simple case of nixos-option capturing all the output of nix-instantiate, including the missing-NIX_PATH-entry warning. I'll have a look at fixing this.
Ah, this might explain why I'm not having the issue, I set my own NIX_PATH, nothing is from the defaults.
I suppose this is just a consequence of #40165, combined with poor handling of the warning by nixos-option.
I expect this is fixed since ee582a32d25 then. I'm unable to reproduce it on 18.09beta676.66fd61163a8, even with sudo etc.
@vcunat no, it's not — this still happens when it's expanded correctly if ~/.nix-defexpr/channels doesn't exist.
@lheckemann: can you also re-test this patch: de93b32?
Yep that fixes it!