Nix Flakes | 879 Members | |
| 175 Servers |
| Sender | Message | Time |
|---|---|---|
| 20 Jul 2023 | ||
| 22:09:03 | ||
| 23 Jul 2023 | ||
| 01:07:33 | ||
| 02:46:22 | ||
| 16:43:24 | ||
| 24 Jul 2023 | ||
| 03:42:01 | ||
| 25 Jul 2023 | ||
| 01:21:17 | ||
| 01:56:54 | ||
| how do i crossbuild a flake nixosconfiguration to aarch64 from x86 on none nixos? | 16:41:18 | |
tried like that error: a 'aarch64-linux' with features {} is required to build '/nix/store/8zwd7397wqs1dsw6j3v11jkfaivlspc3-aarch64-unknown-linux-gnu-binutils-wrapper-2.40.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test, uid-range} | 16:42:26 | |
| just like you would to without flakes. Flakes do nothing for cross-compilation | 16:42:54 | |
| 16:43:10 | ||
| (i.e. use a nixpkgs instantiated with the correct build and host platforms) | 16:43:57 | |
| if you don't pass pkgs to nixosSystem, you can use the nixpkgs nixos module for that | 16:44:15 | |
| if you do pass pkgs to nixosSystem, this pkgs needs to be correctly instantiated | 16:44:34 | |
| hmm guess i have to dig into flake-parts | 16:48:06 | |
| cause im not sure where i can edit the pkgs var which it uses | 16:51:10 | |
| you want to pass pkgs directly to nixosSystem, and not inside specialArgs (which will probably be ignored) | 16:56:02 | |
| moots: hrnz already said it, but specifically you should just be able to set these nixos options and that's all you need, keep the rest like a non-cross system
| 17:16:39 | |
| I feel like setting pkgs like that will prevent e.g. nixpkgs.overlays from working | 17:17:04 | |
| yes, when pkgs is passed to nixosSystem, everything in the nixpkgs nixos-module won't have any effect anymore | 17:17:54 | |
In reply to @2xsaiko:tchncs.dethat doesnt work, and i havent figured out yet how to change nixpkgs before its passed to the nixos config when using flake-parts withsystem | 17:21:55 | |
| I use https://git.hrnz.li/Ulli/nixos/src/branch/main/hosts/flake-module.nix#L104 and it works like a charm | 17:23:20 | |
| oh interesting, is there a reason to explicitly set config like that? I just have these for armv7l: https://git.dblsaiko.net/systems/tree/configurations/turris/default.nix#n35 | 17:27:09 | |
In reply to @ulli:hrnz.liworks i think | 17:27:34 | |
| and I assume "doesn't work" means it doesn't try to cross-compile with just those? that's weird | 17:28:25 | |
In reply to @ulli:hrnz.li* works i think :) | 17:27:36 | |
| wait, you're just calling nixpkgs.lib.nixosSystem yourself from what you sent, then this should have nothing to do with flake-parts | 17:31:17 | |
In reply to @2xsaiko:tchncs.dei didnt had it as argument to the function, but as part of the configuration | 17:30:00 | |
I think you'll want to add inherit (pkgs) system; in your nixosSystem call though | 17:31:53 | |
| like Oracle Cloud uses EFI bootboot.loader.systemd-boot.enable = true; } | 17:30:43 | |