Nix Flakes | 888 Members | |
| 179 Servers |
| Sender | Message | Time |
|---|---|---|
| 25 Jul 2023 | ||
| 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 | |
| * like
| 17:30:53 | |
| not like
| 17:31:14 | |
| yeah i was confused cause flake-parts withsystem sets smth for nixpkgs | 17:32:16 | |
| either way it doesnt work for me rn :( | 17:32:25 | |
| 17:32:37 | |
| wait my mistake | 17:33:14 | |
In reply to @2xsaiko:tchncs.dethere isn't really a reason to do this, this is mostly just leftover from $experiments | 17:39:36 | |
| ah, okay :p | 17:40:56 | |
In reply to @moots:matrix.orgyeah, that's where it should go, these are configuration options | 17:42:40 | |
In reply to @moots:matrix.organd this looks like it's cross compiling but I think "stage" is the bootstrap gcc which is very strange, why is it not cached | 17:44:00 | |
In reply to @2xsaiko:tchncs.deim back to the same issue as before | 17:45:25 | |
In reply to @2xsaiko:tchncs.denot specifying it is probably better as you cannot specify invalid target quartets | 17:45:52 | |
| bonks, head n suddenly it crossbuilds again :| | 17:46:11 | |
| literally just ran nix fmt | 17:46:18 | |