Skip to content
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

initial multiArch support #18

Merged
merged 2 commits into from Dec 28, 2020
Merged

initial multiArch support #18

merged 2 commits into from Dec 28, 2020

Conversation

nrdxp
Copy link
Collaborator

@nrdxp nrdxp commented Aug 4, 2020

This should resolve #17 and fix #34. NixOS is only supported on x86 Linux, so this does not affect nixosConfigurations. This only affects the devShell and package outputs. NixOS is pinned to x86_64 for now.

Every package is tested to ensure it is compatible with a given system based on its platform metadata before it it added to that systems package set.

@nrdxp nrdxp mentioned this pull request Aug 4, 2020
@nrdxp nrdxp added the enhancement New feature or request label Aug 4, 2020
@tgunnoe
Copy link

tgunnoe commented Aug 7, 2020

Hello! This is quite the turnaround from what I assumed to be a dead request. Thanks!

NixOS is only supported on x86 Linux, so this does not affect nixosConfigurations. This only affects the devShell and package outputs. NixOS is pinned to x86_64 for now.

What do you mean by "NixOS is only supported on x86 Linux"? do you mean officially? I haven't seen any statements about official support, but nixpkgs does support multiarch, but maybe not as much non-x86 builds. For example I do still have a hard time updating from both channels 20.03 and unstable on my Pinebook Pro. I think it's mostly the newness of aarch64 using nixpkgs, like at some point i heard the builds are failing in Hydra but were recently fixed.

I'm referring to you for my understanding of flakes using a system configuration.

NixOS is pinned to x86_64 for now.

Thus I do not understand what this means, as nixpkgs has no defined arch? I'm still relatively new and only started tracking my own NixOS configs only recently, but this simple repo layout has been working fine in between x86 and aarch64 machines so far.

My goal is to fully embrace flakes as I am really confident in the future of nix with it. Thus why I am considering adapting my configs to this template, so any of this helps me understand. I will look at adapting my machine configs to what I see in /hosts.

I've definitely liked the layout of this configuration template more than any other i've seen and appreciate what it offers so far. I hope to make the switch soon.

@nrdxp nrdxp marked this pull request as draft December 20, 2020 00:09
@nrdxp
Copy link
Collaborator Author

nrdxp commented Dec 28, 2020

@tgunnoe, sorry for the delayed response on this. I made the assumption, based on the images available for download on nixos.org, that NixOS was only supported on x86, since those are the only images available. It is possible that it would work on other architectures.

Although, since the flakes specification doesn't allow for defining nixosConfigurations.<some-system> without breaking, I'd assume the answer is no. I think I'm finally ready to implement this since flake-utils would make it rather trivial. I just sort of forgot about it with all the crazy stuff going on this year.

@nrdxp nrdxp marked this pull request as ready for review December 28, 2020 04:10
@nrdxp nrdxp merged commit 766b54b into template Dec 28, 2020
@nrdxp nrdxp deleted the multiArch branch December 28, 2020 04:20
blaggacao pushed a commit to blaggacao/devos that referenced this pull request Jul 6, 2021
Pacman99 pushed a commit that referenced this pull request Feb 26, 2022
19: fix deploy-rs multi-arch r=Pacman99 a=GTrunSec

Regarding #18.

Co-authored-by: GTrunSec <gtrunsec@hardenedlinux.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiarch support?
2 participants