fix: replace deprecated nixpkgs.hostPlatform with nixpkgs.system - #149
fix: replace deprecated nixpkgs.hostPlatform with nixpkgs.system#149Dichgrem wants to merge 1 commit into
Conversation
|
Note: The CI failure (fileSystems."/".fsType) is a pre-existing issue unrelated to this change, also present in previous PRs (e.g. #148). |
|
Thanks for the PR, but I think this is chasing the wrong attribute. The warning you quoted is the alias warning for Switching to $ nix eval .#nixosConfigurations.my-nixos.config.nixpkgs.system
error: Neither nixpkgs.system nor any other option in nixpkgs.* is meant
to be read by modules and configurations.
Use pkgs.stdenv.hostPlatform instead.The template's If we wanted to follow nixpkgs' guidance to the letter, the spelling would be (The unrelated |
nixpkgs.hostPlatformis deprecated and triggers evaluation warnings:Replace with
nixpkgs.systeminlib/default.nixlines 193, 199, 205.Verified that
nixpkgs.systemevaluates correctly in a NixOS module context.