-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
host for aarch64 system #125
Comments
The only reason I haven't wired up multiarch for configs is because the flake spec doesn't expect system attributes under I have been thinking about the best way to resolve this, and perhaps a non standard output is the best way for now. You can of course, change the system: And it should work, but this will change the system for all your hosts. I think I'll just add a |
AIUI the reason theres no multi-arch nixosConfigurations output like the packages output works, is that it doesn't make sense for the same nixosConfiguration to be used under multiple archs. If you want a aarch64 nixosConfiguration output, your supposed make the nixosSystem specifically for that aarch64 system. And that makes sense with nixflk's structure since each host is meant for one system, so you just make a new host file for your aarch64 system. I think the main issue is that nixflk doesn't allow changing the system that gets passed to the nixosSystem function since its always "x86_64-linux". As a workaround I think you can override nixpkgs.localSystem to aarch64. From what I saw in nixpkgs, thats where the system input to nixosSystem function gets used. But its set as a default, so you could just do: I think a better solution would be to allow changing the system, possibly by making a new option for it and passing it to nixosSystem. |
The problem is that |
duplicate of #72, let's track progress there |
161: Multi-arch support for hosts(nixosConfigurations) r=nrdxp a=Pacman99 fixes #72 also related, #125 This allows users to set `nixpkgs.system` to any architecture exported by the nixpkgs flake and nixpkgs.pkgs will be set to that system. I also added `multiPkgs` as a special arg and made `nixpkgs.pkgs` a default. So if someone wanted to do crossSystem builds or anything else with pkgs, that is also an option(eg. mobile-nixos!!). Co-authored-by: Pacman99 <[email protected]>
125: customBuilds: use mkDefault for freeform type r=blaggacao a=Pacman99 fixes #419 Co-authored-by: Parthiv Seetharaman <[email protected]>
Describe the bug
Adding an aarch64 system with aarch64 specific packages (like libraspberrypi) gives error:
To Reproduce
Steps to reproduce the behavior:
raspi4.nix
to/hosts
flk raspi4 dry-run
Expected behavior
Dry run should succeed
Additional context
I’m trying to use flake to config all my machines. This template is the best I can find, but still does not fully support multi-arch. Have tried hlissner’s dotfiles, also not working.
The dotfiles from Dunklecat is the only one I ‘ve found support both aarch64 and x86_64. Hope
flk
can support it.The text was updated successfully, but these errors were encountered: