!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

919 Members
Declaratively manage your switching, routing, wireless, tunneling and more.267 Servers

Load older messages


SenderMessageTime
14 Sep 2021
@zorro_infosec:matrix.orgzorro_infosec joined the room.13:50:40
@zorro_infosec:matrix.orgzorro_infosec left the room.13:51:34
15 Sep 2021
@eyjhb:eyjhb.dkeyJhb left the room.07:24:55
@eyjhb:eyjhb.dkeyJhb joined the room.07:34:10
@paultrial:banditlair.compaultrial joined the room.19:27:05
18 Sep 2021
@edrex:matrix.orgedrexhttps://github.com/NixOS/nixpkgs/pull/13834801:21:51
@cw:kernelpanic.cafeRev. CornWallace III (novus ordo seclorum) joined the room.20:43:36
20 Sep 2021
@cw:kernelpanic.cafeRev. CornWallace III (novus ordo seclorum) changed their display name from CornWallace to Rev. CornWallace III.06:45:20
@cw:kernelpanic.cafeRev. CornWallace III (novus ordo seclorum) changed their display name from Rev. CornWallace III to Rev. CornWallace III (tzu/tzi).15:22:28
@cw:kernelpanic.cafeRev. CornWallace III (novus ordo seclorum) changed their display name from Rev. CornWallace III (tzu/tzi) to Rev. CornWallace III (sun/tzu).15:24:48
@em:queersin.spaceEmelie left the room.20:18:24
21 Sep 2021
@pepe:matrix.giugl.ioErPepone joined the room.09:12:25
@pepe:matrix.giugl.ioErPepone Hello everyone! I'm trying to build OpenWRT from NixOS. Does anyone have a working shell.nix? 09:13:41
@pepe:matrix.giugl.ioErPepone
{ pkgs ? import <nixpkgs> {} }:

let
  fixWrapper = pkgs.runCommand "fix-wrapper" {} ''
    mkdir -p $out/bin
    for i in ${pkgs.gcc.cc}/bin/*-gnu-gcc*; do
      ln -s ${pkgs.gcc}/bin/gcc $out/bin/$(basename "$i")
    done
    for i in ${pkgs.gcc.cc}/bin/*-gnu-{g++,c++}*; do
      ln -s ${pkgs.gcc}/bin/g++ $out/bin/$(basename "$i")
    done
  '';

  fhs = pkgs.buildFHSUserEnv {
    name = "openwrt-env";
    targetPkgs = pkgs: with pkgs;
      [ git
        perl
        gnumake
        gcc11
        unzip
        utillinux
        python3
        patch
        wget
        file
        subversion
        which
        pkgconfig
        openssl
        fixWrapper
        systemd
        binutils
        xclip
        quilt

        ncurses
        zlib
        zlib.static
        glibc.static
      ];
    multiPkgs = null;
    extraOutputsToInstall = [ "dev" ];
#    profile = ''
#      export hardeningDisable=all
#    '';
  };
in fhs.env

This is what I have as of now

09:14:19
@pepe:matrix.giugl.ioErPepone But it fails to compile perl on the target arch 09:14:34
@pepe:matrix.giugl.ioErPepone (the env is taken from Mic92, I believe) 09:18:37
@mic92:nixos.devMic92I have not touched this in ages.09:19:57
@pepe:matrix.giugl.ioErPepone Do you have any suggestions? It's my first time trying to build OpenWRT and I have little experience in tweaking shell.nix files 09:20:55
@eyjhb:eyjhb.dkeyJhb I have previously talked about this issue. But I have IPv6-PD working on my router. However, on my WAN (uplink) interface I have a IP 2a06:4000:..., and on the LAN side I have 2a06:4004:.... The default route is to use the WAN side, but that doesn't work after prefix delegation is setup. Is it normal that I have to use the IPv6 that is on the LAN interface? 09:34:23
@hexa:lossy.networkhexa
In reply to @pepe:matrix.giugl.io
But it fails to compile perl on the target arch
not enouugh context; I see perl failures regularly on high core counts, cf. https://github.com/openwrt/packages/issues/8238
12:27:39
@hexa:lossy.networkhexa
In reply to @eyjhb:eyjhb.dk
I have previously talked about this issue. But I have IPv6-PD working on my router. However, on my WAN (uplink) interface I have a IP 2a06:4000:..., and on the LAN side I have 2a06:4004:.... The default route is to use the WAN side, but that doesn't work after prefix delegation is setup. Is it normal that I have to use the IPv6 that is on the LAN interface?
In my personal setup I route over the address on my WAN link, that I receive with RAdv
12:28:50
@hexa:lossy.networkhexathe WAN in this case is a PPPoE tunnel12:29:05
@pepe:matrix.giugl.ioErPeponehexa: I encounter exactly this error https://github.com/openwrt/packages/issues/1059812:29:26
@hexa:lossy.networkhexacan you disable parallel build for perl and retry? https://github.com/openwrt/packages/issues/8238#issuecomment-61250493212:30:58
@pepe:matrix.giugl.ioErPeponehexa, sure! I’ll reply back once I have news :-)12:37:28
@eyjhb:eyjhb.dkeyJhb
In reply to @hexa:lossy.network
In my personal setup I route over the address on my WAN link, that I receive with RAdv
I discussed with TJ- over at #systemd, and I think we ended up as the same conclusion as andi- came to last time. That the IP I get from my ISP, doesn't seem to be globally routeable. However, it might be a issue with networkd, and how the prefix is derived from the PD. Or something like that. For the moment being, I am just going to set a static IPv6 for my WAN interface
13:14:28
@hexa:lossy.networkhexawell, you don't neceessarily get a default route with your IA_PD delegation13:15:17
@hexa:lossy.networkhexait really depends on your default route13:15:27
@eyjhb:eyjhb.dkeyJhbThe dynamic IPs I get via. my ISP works, which has the same prefix works. It's just... A mess...13:16:36
@eyjhb:eyjhb.dkeyJhbThere is also somehting fun with, that I can ping someone and they will see it. But I don't get the response back. Seems to not be routed back to me from my ISP13:17:14

Show newer messages


Back to Room ListRoom Version: 6