!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

922 Members
Declaratively manage your switching, routing, wireless, tunneling and more.277 Servers

Load older messages


SenderMessageTime
18 Sep 2021
@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
@eyjhb:eyjhb.dkeyJhb Ended up writing to my ISP about it hexa , since my routes should be setup correctly etc. and the IPv6 I get from my ISP on my WAN has my prefix encoded in it. So there seems to be some funny business going on. :) 13:48:42
@eyjhb:eyjhb.dkeyJhbAlso, it's such a small ISP, that I think we might only be 3 people max using our own router with them (w/ IPv6). So quite possible that there is something that isn't setup correctly.13:49:30
@eyjhb:eyjhb.dkeyJhbHowever, small == nice in this case, as they are really really friendly13:49:39
@pepe:matrix.giugl.ioErPeponehexa: unfortunately it doesn't work, I still get the same error even if I disable parallel compilation17:39:35
@edrex:matrix.orgedrexWasn't there a channel for routers specifically at some point?18:30:37
@edrex:matrix.orgedrexI want to ask if anyone knows of a web router frontend like eg LUCI from openwrt that can run on nixos. Just an info page with DHCP leases and that sort of thing is what I'm mostly after.18:32:00

Show newer messages


Back to Room ListRoom Version: 6