Use custom nixpkgs version while flake? #465
Answered
by
GavBog
daniilrozanov
asked this question in
Q&A
|
I'm using this package as a flake: ...
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.11";
apple-silicon.url = "github:nix-community/nixos-apple-silicon";
home-manager = {
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
}
...Is there a way to override apple-silicon's nixpkgs version to use my current nixpkgs? Like home-manager does? PS. Is it even OK to use nixos-apple-silicon as a flake? Now that I've done that, everything works, but the Asahi-Linux kernel gets recompiled quite often while I'm updating the system, and that's annoying |
Answered by
GavBog
May 17, 2026
Replies: 1 comment
|
You can override the inputs of any flake using the same syntax home-manager uses: apple-silicon = {
url = "github:nix-community/nixos-apple-silicon";
inputs.nixpkgs.follows = "nixpkgs";
}; |
0 replies
Answer selected by
flokli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can override the inputs of any flake using the same syntax home-manager uses: