How do I define lib.modules.defaultOverridePriority in configuration.nix?

During ‘nixos-rebuild switch’, I am getting a trace warning: “lib.modules.defaultPriority is deprecated, please use lib.modules.defaultOverridePriority instead”. How do I go about defining this in configuration.nix?

Or would this be defined in flake.nix? Any help would be greatly appreciated. I am having a lot of fun setting up my machine :).

1 Like

Are you calling lib.modules.defaultPriority somewhere in your configuration?

If yes, call defaultOverridePriority instead, if not, ignore it. Your upstream will fix it eventually.

2 Likes

It turned out that I was, not explicity, but it was due to a mismatch in my home-manager being “23.05” and my nixpkgs being “unstable”. I was able to resolve this by changing my flake.nix inputs to:

inputs = {
nixpkgs.url = “github:NixOS/nixpkgs/nixos-unstable”;
rust-overlay.url = “github:oxalica/rust-overlay”;
home-manager = {
url = “github:nix-community/home-manager”;
inputs.nixpkgs.follows = “nixpkgs”;
};
};
" home-manager = {
url = “github:nix-community/home-manager”;
inputs.nixpkgs.follows = “nixpkgs”;
};"

I believe before it was trying to follow 23.05.

2 Likes