Since I am already compiling some of my packages I thought that I’ll make them better for my hardware.
I have read the wiki on how to do it and I wanted to try x86_63-v3
.
When I set that I get this behavior:
# nixos-rebuild test
error:
… while evaluating the attribute 'config'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:9:
321| options = checked options;
322| config = checked (removeAttrs config [ "_module" ]);
| ^
323| _module = checked (config._module);
… while calling the 'seq' builtin
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18:
321| options = checked options;
322| config = checked (removeAttrs config [ "_module" ]);
| ^
323| _module = checked (config._module);
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute 'system' missing
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/systems/default.nix:73:81:
72| # Prefer to parse `config` as it is strictly more informative.
73| parsed = parse.mkSystemFromString (if args ? config then args.config else args.system);
| ^
74| # Either of these can be losslessly-extracted from `parsed` iff parsing succeeds.
building Nix...
error:
… while evaluating the attribute 'config'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:9:
321| options = checked options;
322| config = checked (removeAttrs config [ "_module" ]);
| ^
323| _module = checked (config._module);
… while calling the 'seq' builtin
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18:
321| options = checked options;
322| config = checked (removeAttrs config [ "_module" ]);
| ^
323| _module = checked (config._module);
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute 'system' missing
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/systems/default.nix:73:81:
72| # Prefer to parse `config` as it is strictly more informative.
73| parsed = parse.mkSystemFromString (if args ? config then args.config else args.system);
| ^
74| # Either of these can be losslessly-extracted from `parsed` iff parsing succeeds.
building the system configuration...
error:
… while evaluating the attribute 'config.system.build.toplevel'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:9:
321| options = checked options;
322| config = checked (removeAttrs config [ "_module" ]);
| ^
323| _module = checked (config._module);
… while calling the 'seq' builtin
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18:
321| options = checked options;
322| config = checked (removeAttrs config [ "_module" ]);
| ^
323| _module = checked (config._module);
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute 'system' missing
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/systems/default.nix:73:81:
72| # Prefer to parse `config` as it is strictly more informative.
73| parsed = parse.mkSystemFromString (if args ? config then args.config else args.system);
| ^
74| # Either of these can be losslessly-extracted from `parsed` iff parsing succeeds.
I have read this post and I don’t think it’s related.
I also recall one closed PR or issue on this but I can’t find it.
Why does this happen? Can this be fixed?
EDIT: Possibly related: