error:
Failed assertions:
- Your system configures nixpkgs with the platform parameter:
nixpkgs.hostPlatform, with values defined in:
- /etc/nixos/hardware-configuration.nix
However, it also defines the legacy options:
nixpkgs.system, with values defined in:
- /root/.nix-defexpr/channels/nixpkgs/nixos/lib/eval-config.nix
nixpkgs.localSystem, with values defined in:
- /etc/nixos/configuration.nix
For a future proof system configuration, we recommend to remove
the legacy definitions.
error: a āx86_64-linuxā with features {gccarch-skylake} is required to build ā/nix/store/2c3lj8fq2x8m6cdrzmm5z5fg2ah6965l-bootstrap-stage0-glibc-bootstrapFiles.drvā, but I am a āx86_64-linuxā with features {benchmark, big-parallel, kvm, nixos-test}
Where can I find relevant info to learn NixOS?
And what is the proper way to rebuild all?
with -march=native/specific cpu
and/or with -O3/-Ofast (I understand I will receive errors for particular packages)
[root@nixos:~]# nixos-rebuild switch --upgrade
unpacking channels...
building Nix...
building the system configuration...
these 6 derivations will be built:
/nix/store/gqahjsgvz1bbxs9y95nkj6xdjd4xpw8s-nix.conf.drv
/nix/store/x9kbvr8jxb79m58h6r22di7gsry1bn8y-X-Restart-Triggers.drv
/nix/store/ji7m2l4xz0f6492ijzlxlglqq6r7pz38-unit-nix-daemon.service.drv
/nix/store/lsbl2hz99r2mjbf1qyb7g2rqph91rb1q-system-units.drv
/nix/store/42cjwjkzwsz5qjwqw53iqbxiac14l60c-etc.drv
/nix/store/mxngajwqb89g00wkybrn0pi34z4ch7vh-nixos-system-nixos-23.11pre513838.750fc50bfd13.drv
building '/nix/store/gqahjsgvz1bbxs9y95nkj6xdjd4xpw8s-nix.conf.drv'...
Validating generated nix.conf
building '/nix/store/x9kbvr8jxb79m58h6r22di7gsry1bn8y-X-Restart-Triggers.drv'...
building '/nix/store/ji7m2l4xz0f6492ijzlxlglqq6r7pz38-unit-nix-daemon.service.drv'...
building '/nix/store/lsbl2hz99r2mjbf1qyb7g2rqph91rb1q-system-units.drv'...
building '/nix/store/42cjwjkzwsz5qjwqw53iqbxiac14l60c-etc.drv'...
building '/nix/store/mxngajwqb89g00wkybrn0pi34z4ch7vh-nixos-system-nixos-23.11pre513838.750fc50bfd13.drv'...
activating the configuration...
setting up /etc...
reloading user units for spiage...
setting up tmpfiles
So is there the way to force whole system rebuild with -march and/or with -Oās?
Iām canāt find, still googling
(the way from https://nixos.wiki/wiki/Build_flags does not work)
According to this https://nixos.wiki/wiki/Talk:Build_flags This documentation isnāt up to date anymore. Iām not sure since when, but gcc.arch = āwhateverā and gcc.host = āwhateverā are both gone. If you try to use them on 22.05 itās not going to work.
Where can I find actual NixOS manuals to learn NixOS, nix and nixpkg?
I had used that manuals, https://nixos.org/manual/nixos/stable/#sec-installation # nix-channel --add https://channels.nixos.org/nixos-unstable nixos
but one nix maintainer said it was my mistake to use this line because of manual is outdated and I need flakes as it is new paradigm
Later I found that comment inside nixos.wiki
And Iām confused now and do not know how to find starting point and proper manuals
Whereas, as the nixos.wiki landing page points out, itās an unofficial wiki.
one nix maintainer said it was my mistake to use this line because of manual is outdated and I need flakes as it is new paradigm
I think āmistakeā and āneedā are unnecessarily strong terms.
flakes more/less replace channels, and have many UX benefits to them. (e.g. for helping beginners, itās probably better the beginner uses flakes rather than channels). Generally, Iād expect new blogposts/etc. to use flakes, whereas Iād expect channels only in older blogposts/etc.
that should work, just tried it, but it seems like u have to wait until the first bootstrapping stages are built, after that cc uses it for me unsure if u can force the first stages to use it too, but when the packages themself are built/the system it should use it, just not to build the first compilers themself?