!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
128 Servers

Load older messages


SenderMessageTime
25 Jan 2026
@rick:matrix.ciphernetics.nlRick (Mindavi)Missing include maybe? But would be strange vs normal compilation15:14:09
26 Jan 2026
@matthewcroughan:defenestrate.itmatthewcroughan Mindavi: looks like it happens both on native and cross 15:39:22
@matthewcroughan:defenestrate.itmatthewcroughanThis is the only thing blocking me from bumping https://github.com/MatthewCroughan/nixos-musl15:40:39
@matthewcroughan:defenestrate.itmatthewcroughan maybe Grimmauld (any/all) knows? 15:40:48
@grimmauld:m.grimmauld.deGrimmauld (any/all)

no idea, iproute basically just works. Though i do run this:

{
  lib,
  ...
}:

{
  nixpkgs.overlays = [
    (final: prev: {
      networkmanager = prev.networkmanager.overrideAttrs (old: {
        mesonFlags = lib.filter (f: !(lib.hasPrefix "-Diptables=" f)) old.mesonFlags or [ ];
      });
      iproute2 = prev.iproute2.override {
        iptables = null;
      };
      nftables = prev.nftables.override { withXtables = false; };
    })
  ];
  networking.nftables.enable = true;
  system.forbiddenDependenciesRegexes = [ "iptables" ];
}

No need for iptables if one can have nftables, might as well remove it from iproute. Maybe i got lucky and removed the bad code with that? Who knows

15:48:39
@matthewcroughan:defenestrate.itmatthewcroughanis nftables the default in nixpkgs yet?15:51:55
@grimmauld:m.grimmauld.deGrimmauld (any/all)not yet15:52:10
@grimmauld:m.grimmauld.deGrimmauld (any/all)but its one of those things that is just better than the default15:52:23
@matthewcroughan:defenestrate.itmatthewcroughanyeah, for sure15:53:07
@matthewcroughan:defenestrate.itmatthewcroughanIn nixos-musl, if I add those, iproute still ends up in the graph15:56:22
@matthewcroughan:defenestrate.itmatthewcroughanimage.png
Download image.png
15:56:26
@matthewcroughan:defenestrate.itmatthewcroughan remember this is for pkgs.nixos {} all defaults, maybe you've got some more config that somehow gets rid of iproute from the systemPackages too 15:57:08
@matthewcroughan:defenestrate.itmatthewcroughan modifying environment.defaultPackages for example ? 15:57:29
@matthewcroughan:defenestrate.itmatthewcroughan Yes, it's in environment.corePackages 16:00:03
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/network-interfaces.nix#L1771-L177716:00:33
@matthewcroughan:defenestrate.itmatthewcroughanYeah, I'm not sure how you're able to get rid of that16:03:16
@grimmauld:m.grimmauld.deGrimmauld (any/all)oh yeah i build systemd without tpm :P16:05:28
@matthewcroughan:defenestrate.itmatthewcroughanAh!16:05:32
@matthewcroughan:defenestrate.itmatthewcroughanHow does that actually relate to iproute2 being included in the network tho16:05:44
@matthewcroughan:defenestrate.itmatthewcroughan* How does that actually relate to iproute2 being included in the network interfaces file tho16:05:50
@matthewcroughan:defenestrate.itmatthewcroughan like how does tasks/network-interfaces.nix somehow become conditional on tpm 16:06:05
@matthewcroughan:defenestrate.itmatthewcroughan * like how does tasks/network-interfaces.nix somehow become conditional on tpm? 16:06:07
@grimmauld:m.grimmauld.deGrimmauld (any/all)no clue, i just know i haven't heard of any issues with iproute and dropping iptables is the only overlay i have against it16:06:23
@grimmauld:m.grimmauld.deGrimmauld (any/all)iproute stays in the closure16:06:33
@matthewcroughan:defenestrate.itmatthewcroughanThen something else must be being done, I don't think tpm is related here16:06:37
@grimmauld:m.grimmauld.deGrimmauld (any/all)but iptables goes away16:06:38
@matthewcroughan:defenestrate.itmatthewcroughanOh okay and iproute is the thing causing the failure16:06:50
@grimmauld:m.grimmauld.deGrimmauld (any/all)yeah16:06:57
@matthewcroughan:defenestrate.itmatthewcroughanfor me, it doesn't resolve it, iproute2 with iptables is still in the closure16:07:18
@matthewcroughan:defenestrate.itmatthewcroughanverbatim doing what you said16:07:21

Show newer messages


Back to Room ListRoom Version: 6