!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

574 Members
125 Servers

Load older messages


SenderMessageTime
26 Jan 2026
@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
@grimmauld:m.grimmauld.deGrimmauld (any/all)the only thing i do to it is remove iptables, other than that the nixpkgs package for iproute just works on musl last i checked16:07:29
@matthewcroughan:defenestrate.itmatthewcroughanYeah no, I think this fix you've provided is for a different failure case16:09:32
@matthewcroughan:defenestrate.itmatthewcroughan

iproute2 is failing due to

iproute2> utils_math.c:136:13: error: use of undeclared identifier 'UINT_MAX'
iproute2>   136 |         if (sz64 > UINT_MAX)
16:10:01
@matthewcroughan:defenestrate.itmatthewcroughan Grimmauld (any/all): You won't believe this 16:26:46

Show newer messages


Back to Room ListRoom Version: 6