Broken state of the system after 25.11

Hello again. It’s been a while as it’s been smooth sailing until I decided to update my flake’s channel to 25.11.

I booted into the new configuration, greeted with a KDE crash.

Going into previous configuration, network doesn’t work anymore on previous and current configuration.

this is the debug output of Dr Konqi

Starting debugger /nix/store/9zp694qlqvalxa72fj83k1r9jhq97gbf-gdb-host-cpu-only-16.3/bin/gdb --nw --nx --batch --init-eval-command=set debuginfod enabled on --command=/tmp/drkonqi.lCHvRx --command=/tmp/drkonqi.xFABxy --core=/tmp/drkonqi-core.kMzUpc/core /nix/store/fk6yjj32x7wjyig0m26ln3ysqsn3d4hg-plasma-workspace-6.5.4/bin/.plasmashell-wrapped

warning: Can't open file /memfd:unknown-usage:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:sljit (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JITCode:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JSVMStack:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:pulseaudio (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JSGCHeap:QtQml (deleted) during file-backed mapping note processing
[New LWP 4157]
[New LWP 4165]
[New LWP 4182]
[New LWP 4166]
[New LWP 4189]
[New LWP 4191]
[New LWP 4192]
[New LWP 4190]
[New LWP 4163]
[New LWP 5114]
[New LWP 4193]
[New LWP 4194]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/nix/store/xx7cm72qy2c0643cm1ipngd87aqwkcdp-glibc-2.40-66/lib/libthread_db.so.1".
Core was generated by `/nix/store/fk6yjj32x7wjyig0m26ln3ysqsn3d4hg-plasma-workspace-6.5.4/bin/.plasmashell-wrapped --no-respawn'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f8ced29caac in __pthread_kill_implementation () from /nix/store/xx7cm72qy2c0643cm1ipngd87aqwkcdp-glibc-2.40-66/lib/libc.so.6
[Current thread is 1 (Thread 0x7f8ce760acc0 (LWP 4157))]
warning: File "/nix/store/5qdsnc26nv61j5rrw492f19xav2rz45v-glib-2.86.1/lib/libgobject-2.0.so.0.8600.1-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load:/nix/store/xm08aqdd7pxcdhm0ak6aqb1v7hw5q6ri-gcc-14.3.0-lib".
To enable execution of this file add
	add-auto-load-safe-path /nix/store/5qdsnc26nv61j5rrw492f19xav2rz45v-glib-2.86.1/lib/libgobject-2.0.so.0.8600.1-gdb.py
line to your configuration file "/home/nika/.config/gdb/gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/nika/.config/gdb/gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
warning: File "/nix/store/5qdsnc26nv61j5rrw492f19xav2rz45v-glib-2.86.1/lib/libglib-2.0.so.0.8600.1-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load:/nix/store/xm08aqdd7pxcdhm0ak6aqb1v7hw5q6ri-gcc-14.3.0-lib".
warning: Missing auto-load script at offset 0 in section .debug_gdb_scripts
of file /nix/store/72h0721w18pc8103hqsi2iaywji795hq-mesa-25.2.6/lib/libvulkan_nouveau.so.
Use `info auto-load python-scripts [REGEXP]' to list them.
Traceback (most recent call last):
  File "/nix/store/bnc3z4pbxrj6sna76h4cll4d5wpqvamb-drkonqi-6.5.4/share/drkonqi/gdb/python/gdb_preamble/preamble.py", line 608, in print_preamble
    print_preamble_internal()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/nix/store/bnc3z4pbxrj6sna76h4cll4d5wpqvamb-drkonqi-6.5.4/share/drkonqi/gdb/python/gdb_preamble/preamble.py", line 582, in print_preamble_internal
    resolve_modules()
    ~~~~~~~~~~~~~~~^^
  File "/nix/store/bnc3z4pbxrj6sna76h4cll4d5wpqvamb-drkonqi-6.5.4/share/drkonqi/gdb/python/gdb_preamble/preamble.py", line 577, in resolve_modules
    image = CoreImage(line)
  File "/nix/store/bnc3z4pbxrj6sna76h4cll4d5wpqvamb-drkonqi-6.5.4/share/drkonqi/gdb/python/gdb_preamble/preamble.py", line 545, in __init__
    raise NoBuildIdException(f'No build id found in core image: {eu_unstrip_line}')
NoBuildIdException: No build id found in core image: 0x7f8c78908000+0x7b458 - /nix/store/ykg55ldgc1r0kf54j354r92qan2b2kwn-v4l-utils-1.32.0/lib/libv4lconvert.so.0 - libv4lconvert.so.0
No build id found in core image: 0x7f8c78908000+0x7b458 - /nix/store/ykg55ldgc1r0kf54j354r92qan2b2kwn-v4l-utils-1.32.0/lib/libv4lconvert.so.0 - libv4lconvert.so.0
Debugging ended with exit code '1' and exit status 'NormalExit' 

systemd output regarding networking:

systemd[1]: Starting Wait for Network to be Configured...
systemd-networkd-wait-online[6996]: Timeout occurred while waiting for network connectivity.
systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Wait for Network to be Configured.

link to my configuration flake:

I’ve made it temporarily public.

My great gratitude for assisting with my issues.

1 Like

I use KDE and was able to migrate to 25.11 without issues.

I thought you had a conflict between networkmanager and systemd-networkd, but I can’t see you using the latter from the config except for the usage of useDHCP. If I were you I’d disable it. I’d also set systemd.services.NetworkManager-wait-online.enable = false to be extra sure.

But anyway we need more information: is networkmanager running as it should? Why does KDE crash? etc.

About dr konqi: it is unfortunately useless as it crashes if any dependency of a given program or gdb itself lacks a build id, which is the default for nix binaries.

I’ve set

as requested, tried to add that to the config but now even the local cache isn’t being used so I can’t apply config changes.

I’d love to but I can’t find that anywhere in my config. I’m still not proficient in nix, as I just want my system to work.

I don’t know how to check that, using networkctl status (which is networkd) shows me that the interface has been reached and the gateway is there.

this is all i can see + the Dr konqi report from “view detailed output”

other than that, the desktop is pretty much gone.

okay so, nmcli shows that my network card is connected.

nmcli g shows that wwan-hw is missing

everything looks fine, unless you need specific information.

on my routers side, computer is not connected to the router interestingly.

I think I saw it in hardware-configuration.nix ; per se it does not enable systemd-networkd though. Again, I don’t think it’s the issue here.

journalctl -xu NetworkManager
journalctl -xu systemd-networkd

The second command should fail and the first one should work. Otherwise there is a conflict.

But why would networkctl status work on a machine that uses NetworkManager? It doesn’t for me.

For KDE: since as I said dr konqi is unusable on nix, you can use

systemctl list-dependencies --user multi-user.target
systemctl list-dependencies --user graphical-session.target

to get a list of all the units that should have been started. If you see a unit marked in red, please show the output of journalctl -xu <failing service name>.

Also sudo dmesg | less may be useful.

nmcli g shows that wwan-hw is missing

This is normal unless you connect with a SIM reader, which is not your case.

as requested, tried to add that to the config but now even the local cache isn’t being used so I can’t apply config changes.

This is very unfortunate. But if you haven’t added anything new in the config maybe this will help: NixOS without internet - #3 by TLATER ;

My understanding is that something crashed either in the graphical-session target or the multi-user, and as a cascade it has halted everything. As for why this happened to you, maybe some migration went very wrong? But we need more info.

both have entries

[nika@nixos:~]$ journalctl -xu systemd-networkd
Dec 14 18:48:17 nixos systemd[1]: Starting Network Configuration...
░░ Subject: A start job for unit systemd-networkd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd.service has begun execution.
░░
░░ The job identifier is 7377.
Dec 14 18:48:17 nixos systemd-networkd[14740]: lo: Link UP
Dec 14 18:48:17 nixos systemd-networkd[14740]: lo: Gained carrier
Dec 14 18:48:17 nixos systemd-networkd[14740]: enp38s0: Link UP
Dec 14 18:48:17 nixos systemd-networkd[14740]: enp38s0: Gained carrier
Dec 14 18:48:17 nixos systemd-networkd[14740]: virbr0: Link UP
Dec 14 18:48:17 nixos systemd-networkd[14740]: virbr0: Gained carrier
Dec 14 18:48:17 nixos systemd-networkd[14740]: vnet0: Link UP
Dec 14 18:48:17 nixos systemd-networkd[14740]: vnet0: Gained carrier
Dec 14 18:48:17 nixos systemd-networkd[14740]: enp38s0: Gained IPv6LL
Dec 14 18:48:17 nixos systemd-networkd[14740]: vnet0: Gained IPv6LL
Dec 14 18:48:17 nixos systemd[1]: Started Network Configuration.
░░ Subject: A start job for unit systemd-networkd.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd.service has finished successfully.
░░
░░ The job identifier is 7377.
Dec 14 18:48:17 nixos systemd-networkd[14740]: wlo1: Link UP
Dec 14 18:48:18 nixos systemd-networkd[14740]: wlo1: Link DOWN
Dec 14 18:48:18 nixos systemd-networkd[14740]: wlo1: Link UP
Dec 14 18:48:21 nixos systemd-networkd[14740]: wlo1: Link DOWN
Dec 14 18:48:21 nixos systemd-networkd[14740]: wlo1: Link UP
Dec 14 18:48:52 nixos systemd-networkd[14740]: wlo1: Link DOWN
Dec 14 18:48:52 nixos systemd-networkd[14740]: wlo1: Link UP
Dec 14 18:55:14 nixos systemd-networkd[14740]: vnet0: Link DOWN
Dec 14 18:55:14 nixos systemd-networkd[14740]: vnet0: Lost carrier
Dec 14 18:55:14 nixos systemd-networkd[14740]: virbr0: Lost carrier
Dec 14 18:55:14 nixos systemd[1]: Stopping Network Configuration...
░░ Subject: A stop job for unit systemd-networkd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A stop job for unit systemd-networkd.service has begun execution.
░░
░░ The job identifier is 9782.
Dec 14 18:55:14 nixos systemd[1]: systemd-networkd.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-networkd.service has successfully entered the 'dead' state.
Dec 14 18:55:14 nixos systemd[1]: Stopped Network Configuration.
░░ Subject: A stop job for unit systemd-networkd.service has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A stop job for unit systemd-networkd.service has finished.
░░
░░ The job identifier is 9782 and the job result is done.
Dec 14 18:55:14 nixos systemd[1]: systemd-networkd.service: Consumed 46ms CPU time, 4.5M memory peak, 1.9M read from disk.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-networkd.service completed and consumed the indicated resources.
-- Boot e145caecbc1641f89bc48d218cb1d4f7 --
Dec 14 18:57:06 nixos systemd[1]: Starting Network Configuration...
░░ Subject: A start job for unit systemd-networkd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd.service has begun execution.
░░
░░ The job identifier is 159.
Dec 14 18:57:06 nixos systemd-networkd[854]: lo: Link UP
Dec 14 18:57:06 nixos systemd-networkd[854]: lo: Gained carrier
Dec 14 18:57:06 nixos systemd[1]: Started Network Configuration.
░░ Subject: A start job for unit systemd-networkd.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd.service has finished successfully.
░░
░░ The job identifier is 159.
Dec 14 18:57:07 nixos systemd-networkd[854]: eth0: Interface name change detected, renamed to enp38s0.
Dec 14 18:57:07 nixos systemd-networkd[854]: wlan0: Interface name change detected, renamed to wlo1.
Dec 14 18:57:09 nixos systemd-networkd[854]: enp38s0: Link UP
Dec 14 18:57:09 nixos systemd-networkd[854]: wlo1: Link UP

[nika@nixos:~]$ sudo systemctl list-dependencies --user multi
[sudo] password for nika:
sudo: a password is required

[nika@nixos:~]$ sudo systemctl list-dependencies --user multi-user.target
[sudo] password for nika:
Failed to connect to user scope bus via local transport: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)

[nika@nixos:~]$ sudo systemctl list-dependencies --user graphical-session.target
Failed to connect to user scope bus via local transport: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)

if you’re wondering how I can copy the terminal output, I just copy and paste that into a txt file on my phone

here’s also some stuff I did with chatgpt, which maybe have some use:

Skip to content
You said:
my nixos system isn't connecting to internet via ethernet. NetworkManager sees the gateway but the gateway doesn't see my computer
ChatGPT said:

Got it — this is a fairly common NixOS + Ethernet issue. Since NetworkManager sees the gateway but the gateway doesn’t see your machine, that usually means link is up but traffic isn’t actually leaving your NIC (or MAC/IP isn’t being registered).

Let’s go through this systematically, starting with the highest-probability causes on NixOS.
1. Confirm link + driver (very important)

First, make sure the kernel driver is actually working.

ip link

You should see something like:

enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP>

Key things:

    UP

    LOWER_UP (means physical link detected)

If LOWER_UP is missing, that’s a driver or cable issue.

Also check:

ethtool enp3s0

Look for:

    Link detected: yes

If link is no, stop here — it’s physical/driver.
2. Check IP assignment (DHCP)

Since NetworkManager “sees” the gateway, but traffic fails, DHCP may be half-working.

ip addr show enp3s0

You should see something like:

inet 192.168.1.123/24

If you see:

    No inet address → DHCP failed

    169.254.x.x → DHCP failed (link-local fallback)

Force DHCP renewal:

nmcli device set enp3s0 managed yes
nmcli device disconnect enp3s0
nmcli device connect enp3s0

Then check logs:

journalctl -u NetworkManager --no-pager -n 50

Look for:

    DHCP failed

    no lease

    carrier changed

3. Verify routing (very common silent failure)

Even with an IP, routing may be broken.

ip route

You must see a default route:

default via 192.168.1.1 dev enp3s0

If default route is missing:

nmcli connection show
nmcli connection modify "<connection-name>" ipv4.method auto
nmcli connection up "<connection-name>"

4. ARP test (this reveals the real problem)

Since the gateway doesn’t see your computer, ARP may be failing.

Run:

ip neigh

Then:

ping -c 3 192.168.1.1
ip neigh

Interpretation:

    FAILED or INCOMPLETE → gateway never sees your MAC

    REACHABLE → ARP works, problem is higher up

If ARP fails, this is usually:

    Wrong VLAN

    Bad MAC filtering

    Driver offload bug

5. Disable offloading (fixes many NixOS Ethernet issues)

Some NICs (Realtek, Intel I225/I226) misbehave with offloading.

Try:

sudo ethtool -K enp3s0 tso off gso off gro off

Then retry pinging the gateway.

If that fixes it, make it permanent in NixOS:

networking.interfaces.enp3s0 = {
  useDHCP = true;
};

and add:

systemd.services.disable-offloading = {
  wantedBy = [ "multi-user.target" ];
  script = ''
    ethtool -K enp3s0 tso off gso off gro off
  '';
};

6. Check for MAC randomization (gateway “doesn’t see” you)

Some routers reject randomized MACs.

Check:

nmcli device show enp3s0 | grep MAC

Disable MAC randomization:

nmcli connection modify "<connection-name>" 802-3-ethernet.cloned-mac-address permanent
nmcli connection down "<connection-name>"
nmcli connection up "<connection-name>"

7. Firewall sanity check

NixOS firewall usually doesn’t block outbound, but verify:

sudo iptables -L -n

Temporarily disable firewall:

sudo systemctl stop firewall

If it suddenly works → firewall config issue.
8. Quick isolation test (bypass NetworkManager)

This tells us if NM is the problem:

sudo systemctl stop NetworkManager
sudo dhclient enp3s0

If this works, the issue is NetworkManager config, not the driver.
The 3 most common root causes (based on your symptom)

Given “gateway sees nothing”, the most likely are:

    Broken NIC offloading

    MAC randomization rejected by router

    Driver issue (especially Realtek / Intel 2.5G)

Next step (so I don’t guess)

Reply with:

    Output of ip link

    Output of ip addr show enp3s0

    Output of ip route

    Your NIC model (lspci | grep -i ethernet)

With that, I can tell you exactly what’s wrong and how to fix it permanently on NixOS.
You said:
enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> is present
ethtool is not present on my system
inet address is present with the static ip that I gave the machine
no warnings for my Ethernet adapter in journalctl; although some errors when attempting internet connection via USB tethering from my phone: "set-link: failure to set link negotiation", "set-link: failure to reset link negotiation" and some dns-sd-resolved warnings: "send-updates SetLinkDomains@n failed: GDBus.Error:org.freedesktop.resolve1.NoSuchLink: Link n not found"
default ip route is present
ip neigh: "IPV6_ADDRESS_HERE dev vnet0 FAILED"
ChatGPT said:

Thanks, that narrows it down a lot. Based on what you’ve given, this is almost certainly an L2/ARP problem on IPv4, not DNS, routing, or link state.

Let me explain why, then what to do.
What your info tells us
✅ Physical link is fine

    UP, LOWER_UP → cable + PHY + driver OK

✅ IP stack is configured

    Static IPv4 address present

    Default route present

🚨 ARP is broken (key point)

    ip neigh shows only:

    IPV6_ADDRESS_HERE dev vnet0 FAILED

    No entry for your IPv4 gateway

    vnet0 strongly suggests a virtual interface, not your real NIC

This means:

    Your machine is not successfully ARPing for the gateway on enp3s0

If ARP fails, the gateway literally cannot see your computer, exactly matching your symptom.
Why this happens on NixOS

Given:

    static IP

    NetworkManager

    no ethtool installed

    vnet0 present

The most common causes are:

    Wrong interface is actually being used

    Wrong subnet or gateway for the static IP

    VLAN mismatch

    Bridge / virtualization interference

    NIC offloading bug (still possible even without ethtool installed)

Step 1: Confirm ARP failure directly (important)

Run this and tell me what happens:

ping -c 3 <YOUR_GATEWAY_IPV4>

Then immediately:

ip neigh show dev enp3s0

Expected if broken:

    Ping times out

    No neighbor entry OR INCOMPLETE / FAILED

If that’s what you see, we’re 100% confirmed on ARP.
Step 2: Verify your static IP is actually valid

Please double-check these exact values:

ip addr show enp3s0
ip route

Specifically:

    IP address (e.g. 192.168.1.10/24)

    Gateway (e.g. 192.168.1.1)

⚠️ Common mistake:

    IP like 192.168.1.10/24

    Gateway like 192.168.0.1
    → ARP will never work

The gateway must be in the same L2 subnet.
Step 3: Check if enp3s0 is actually the active NM device

NetworkManager sometimes silently prefers another interface.

nmcli device status

You should see:

enp3s0  ethernet  connected

If you see:

    vnet0 connected

    enp3s0 unmanaged or disconnected

Then NM is not using your real NIC.

Fix:

nmcli device set enp3s0 managed yes
nmcli device connect enp3s0

Step 4: Virtualization is a red flag here

The presence of vnet0 means libvirt / qemu bridge networking.

This can break ARP if:

    enp3s0 is enslaved to a bridge

    NM is configuring the wrong layer

Check:

bridge link

If enp3s0 is part of a bridge (virbr0, etc.), your IP must be on the bridge, not enp3s0.

If you see that, say so — the fix is different and very specific.
Step 5: Install ethtool (you need it)

Even though link is up, offloading bugs can still kill ARP.

Install temporarily:

nix-shell -p ethtool

Then:

sudo ethtool -K enp3s0 tso off gso off gro off

Retry pinging the gateway.

If this fixes it, we’ll make it permanent in your NixOS config.
Step 6: Eliminate NetworkManager entirely (quick isolation)

This is the fastest way to prove whether NM is the culprit:

sudo systemctl stop NetworkManager
sudo ip addr flush dev enp3s0
sudo ip addr add <YOUR_IP>/<PREFIX> dev enp3s0
sudo ip link set enp3s0 up
sudo ip route add default via <GATEWAY>
ping <GATEWAY>

    ✅ If this works → NetworkManager config issue

    ❌ If this fails → driver / VLAN / L2 issue

What I need next (minimal)

Please reply with:

    Output of ping <gateway>

    Output of ip neigh show dev enp3s0

    Output of nmcli device status

    Whether bridge link shows enp3s0 enslaved

With that, I can tell you exactly which of the above it is and give you the precise NixOS fix.
You said:
ping -c 3 <YOUR_GATEWAY_IPV4> - destination port Unreachable
ip neigh show dev enp3s0 - no output
ip addr show enp3s0 - device IP is present, no gateway IP
IP Route - default via correct gateway, src is the device IP; network address is correct
nmcli device status - enp3s0 ethernet connected, lo loopback connected (externally), virbr0 bridge connected (externally), vnet0 tun connected (externally)
bridge link - vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master virbr0 state forwarding priority 32 cost 2

sudo systemctl stop NetworkManagersudo ip addr flush dev enp3s0sudo ip addr add <YOUR_IP>/<PREFIX> dev enp3s0sudo ip link set enp3s0 upsudo ip route add default via <GATEWAY>ping <GATEWAY>
FAILED, destination port unreachable.
ChatGPT said:

Great, thanks — this is now very clear.
You’ve done the right isolation steps, and the result is definitive.
The key smoking guns
1. No ARP entries at all for enp3s0

ip neigh show dev enp3s0
# (no output)

That means:

    Your kernel is not successfully resolving L2 neighbors

    The gateway never learns your MAC

    This is below IP, so DNS, routing, NM, static vs DHCP don’t matter

2. Fails even without NetworkManager

You manually configured IP + route and still get:

Destination Port Unreachable

That rules out NetworkManager entirely.
3. That error message is very important

ping normally times out if packets just disappear.

“Destination Port Unreachable” immediately usually means:

    The local system is rejecting packets

    OR nftables/iptables is actively sending ICMP rejects

    OR a netdev-level firewall rule is blocking ARP/ICMP

This is not a normal “network down” symptom.
What this is NOT

❌ Not a gateway problem
❌ Not IP config
❌ Not routing
❌ Not DNS
❌ Not NetworkManager
❌ Not virtualization bridge (enp3s0 is not enslaved)
What this almost certainly IS
👉 nftables / firewall blocking traffic at L2 or early L3

On NixOS this can happen if:

    networking.firewall.enable = true;

    A netdev or ingress nftables table exists

    Or a leftover custom ruleset exists

ARP can be blocked by nftables — and when it is, you get exactly this behavior.
Step 1: Prove it (safe test)

Run this temporarily:

sudo systemctl stop firewall
sudo nft flush ruleset

Then immediately:

ping <gateway>
ip neigh show dev enp3s0

If this suddenly works:

✅ Problem confirmed: firewall ruleset
Step 2: If it works — the permanent NixOS fix

Edit your NixOS config and ensure:

networking.firewall.enable = false;

OR, if you want the firewall:

networking.firewall = {
  enable = true;
  allowPing = true;
  checkReversePath = false;
};

Then rebuild:

sudo nixos-rebuild switch

Step 3: Check for netdev / ingress rules (very likely)

Even if the firewall service is stopped, check:

sudo nft list ruleset

If you see anything like:

table netdev filter
table netdev ingress

Those can block ARP.

They should not exist on a normal workstation.
Step 4: One more subtle but real cause — wrong prefix length

Double-check this carefully:

ip addr show enp3s0

If you see something like:

inet 192.168.1.10/32

or

/31

ARP will fail even with a “correct-looking” route.

For a normal LAN it should be:

/24   (255.255.255.0)

Why libvirt is not the cause (important)

    enp3s0 is not enslaved to virbr0

    vnet0 is correctly bridged

    This setup does not interfere with host ARP unless firewalling is involved

So you don’t need to remove libvirt.
Final diagnosis (with high confidence)

Your system is blocking ARP / ICMP locally via nftables/firewall, causing:

    No ARP entries

    Gateway never sees your MAC

    Immediate “Destination Port Unreachable”

Next reply — just one thing

Please run:

sudo nft list ruleset

Paste it (or confirm that flushing fixed everything), and I’ll tell you exactly which rule is responsible and how to fix it cleanly in NixOS.
You said:
sudo systemctl stop firewall
sudo nft flush ruleset
I don't have nft on my system and I don't have network to temporarily obtain it
ChatGPT said:

Perfect — and thanks for sticking with this, because this detail actually changes the conclusion in a useful way.

If you do not have nft installed at all, then:

    networking.firewall (nftables) is not active

    There is no netdev / ingress filtering

    The “Destination Port Unreachable” is not coming from nftables

So we go one layer lower.
Re-interpreting the symptoms (correctly, now)

Let’s restate the hard facts:

    Link is up (LOWER_UP)

    Static IP + route configured

    Fails with NM and without NM

    No ARP entries ever appear

    Gateway never sees your MAC

    Immediate ICMP error, not timeout

    No nftables, no firewall

    libvirt bridge exists but does not enslave enp3s0

This combination points to the NIC itself never transmitting frames, even though the kernel thinks it is up.

That narrows it to exactly three real causes.
The actual likely causes (ranked)
🥇 Broken / missing NIC firmware

Very common on NixOS, especially with:

    Intel I219 / I225 / I226

    Realtek RTL8125 / RTL8168

Without firmware:

    Link comes up

    IP config works

    ARP never leaves the machine

🥈 Wrong kernel driver bound

The wrong module can bring link up but not TX.
🥉 VLAN tagging mismatch

If your switch/router expects untagged traffic but your NIC is tagging (or vice versa), ARP dies silently.
Step 1: Identify the NIC (this is critical)

Run:

lspci -nn | grep -i ethernet

Paste the full line.

This tells us exactly which firmware or driver is missing.
Step 2: Check which driver is loaded

Run:

lspci -k | grep -A3 -i ethernet

Look for:

Kernel driver in use:
Kernel modules:

Step 3: Check firmware loading errors

Even without internet, logs will tell us:

dmesg | grep -i firmware
dmesg | grep -i eth

If you see:

failed to load firmware

or

Direct firmware load failed

→ this is the bug.
Step 4: The NixOS fix (offline-safe)

Once you tell me the NIC model, I’ll give you the exact config, but the most common fix is:

hardware.enableRedistributableFirmware = true;

and sometimes:

boot.kernelPackages = pkgs.linuxPackages_latest;

Then:

sudo nixos-rebuild switch

This works offline as long as the firmware is already in your nix store (often is).
Step 5: One fast sanity test (no new packages)

Run:

ip -s link show enp3s0

Then ping the gateway again and re-run it.

If:

    RX increases

    TX stays at 0

That proves the NIC is not transmitting.
Why I’m confident this is firmware/driver

    ARP never appears

    Firewall eliminated

    NM eliminated

    Route correct

    Link up

    Immediate ICMP error

This is textbook “NIC up, firmware missing”.
Next (only thing I need)

Reply with:

    lspci -nn | grep -i ethernet

    Output of ip -s link show enp3s0

After that, I can give you a one-shot NixOS config fix tailored to your exact hardware.
You said:

[nika@nixos:~]$ lspci -nn | grep -i ethernet 26:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 04)  [nika@nixos:~]$ lspci -k |  grep -A3 -i ethernet 26:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 04)         Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7c84         Kernel driver in use: r8169         Kernel modules: r8169  [nika@nixos:~]$ dmesg | grep -i firmware dmesg: read kernel buffer failed: Operation not permitted  [nika@nixos:~]$ sudo dmesg | grep -i firmware [sudo] password for nika: [    0.266684] Spectre V2 : Enabling Restricted Speculation for firmware calls [    0.446644] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored [    0.471212] acpi PNP0A08:00: [Firmware Info]: ECAM [mem 0xf0000000-0xf7ffffff] for domain 0000 [bus 00-7f] only partially covers this bridge [    2.457694] stage-2-init: removing obsolete symlink \xe2\x80\x98/etc/pki/fwupd/GPG-KEY-Linux-Vendor-Firmware-Service\xe2\x80\x99... [    2.457807] stage-2-init: removing obsolete symlink \xe2\x80\x98/etc/pki/fwupd/GPG-KEY-Linux-Foundation-Firmware\xe2\x80\x99... [    2.458508] stage-2-init: removing obsolete symlink \xe2\x80\x98/etc/pki/fwupd-metadata/GPG-KEY-Linux-Vendor-Firmware-Service\xe2\x80\x99... [    2.963677] systemd[1]: Clear Stale Hibernate Storage Info was skipped because of an unmet condition check (ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67). [    3.583833] Bluetooth: hci0: Found device firmware: intel/ibt-20-1-3.sfi [    3.583850] Bluetooth: hci0: Firmware Version: 193-33.24 [    3.583851] Bluetooth: hci0: Firmware already loaded [    3.586003] iwlwifi 0000:28:00.0: loaded firmware version 77.30b1cbd8.0 cc-a0-77.ucode op_mode iwlmvm [    7.518483] amdgpu 0000:2f:00.0: amdgpu: [drm] Loading DMUB firmware via PSP: version=0x02020021 [    7.519058] amdgpu 0000:2f:00.0: amdgpu: Found VCN firmware Version ENC: 1.33 DEC: 4 VEP: 0 Revision: 13 [    7.519154] amdgpu 0000:2f:00.0: amdgpu: Found VCN firmware Version ENC: 1.33 DEC: 4 VEP: 0 Revision: 13  [nika@nixos:~]$ sudo dmesg | grep -i eth [    3.385813] r8169 0000:26:00.0 eth0: RTL8125B, d8:bb:c1:05:62:1b, XID 641, IRQ 126 [    3.385818] r8169 0000:26:00.0 eth0: jumbo features [frames: 16362 bytes, tx checksumming: ko] [    3.495388] r8169 0000:26:00.0 enp38s0: renamed from eth0 [    5.823329] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [  139.397738] usbcore: registered new interface driver cdc_ether  [nika@nixos:~]$ ip -s link show enp38s0 2: enp38s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000     link/ether d8:bb:c1:05:62:1b brd ff:ff:ff:ff:ff:ff     RX:  bytes packets errors dropped  missed   mcast          62504     932      0     840       0      16     TX:  bytes packets errors dropped carrier collsns           1816      22      0       0       0       0     altname enxd8bbc105621b

ChatGPT said:

Thanks for the detailed output! Based on the information you've provided, I can now clearly see what's going on. Here's the breakdown:
Key Findings:

    NIC Model:
    The NIC is a Realtek RTL8125 (2.5GbE), and the driver in use is r8169. This is one of the commonly affected drivers for Realtek NICs, especially with NixOS.

    Firmware Loading:
    Your logs show that there’s no specific firmware loading for the Realtek NIC. The dmesg output doesn't indicate any firmware-related issues directly, but this is a common cause for malfunctioning NICs, especially with Realtek drivers.

    Driver:
    The r8169 driver is loaded, but this does not always work well with the RTL8125 chipset. The RTL8125 often needs the r8125 driver, a proprietary driver, to function correctly in some cases.

    No Transmission (TX):
    In the ip -s link show enp38s0 output, the TX bytes are extremely low (1816), indicating that your NIC is receiving packets but is not transmitting anything — this strongly suggests that ARP requests (and other outbound packets) are being dropped or not transmitted properly.

Step 1: Use the Correct Driver

The r8169 driver is not ideal for the RTL8125 chipset. The correct driver for the RTL8125 is the r8125 driver. This can fix issues with ARP and packet transmission.

You can install the r8125 driver from source or use the r8168 driver (which is also compatible with this chipset). Here’s how to proceed:
Step 2: Install the r8125 Driver

    Install the driver manually:

    Since you don't have internet access right now, you'll need to get the driver offline. Here’s what you can do:

        Download the driver from the Realtek website

    .

    Or, download it from another machine and transfer it via USB.

Compile and install the driver:
Once you have the driver on your system, you can compile and install it manually.

    Extract the driver (if it's compressed):

tar -xvf r8125-x.x.x.tar.bz2
cd r8125-x.x.x

Compile the driver:

make
sudo make install

Unload the old r8169 driver (to avoid conflict):

sudo modprobe -r r8169

Load the r8125 driver:

    sudo modprobe r8125

Ensure it loads on boot:
Add r8125 to your NixOS configuration:

boot.kernelModules = [ "r8125" ];

Then rebuild your system:

    sudo nixos-rebuild switch

Step 3: Re-test the NIC

After you install the r8125 driver, check:

ip -s link show enp38s0

You should see TX bytes increasing, indicating that the NIC is now transmitting packets properly.

Additionally, test ARP and routing again:

ping <your_gateway_ip>
ip neigh show dev enp38s0

If ARP works and packets are transmitted, you're good to go.
Step 4: Check for Missing Firmware (if needed)

If you’re still facing issues, check that the firmware is installed. Sometimes, the r8169 driver may still require specific firmware to work with your RTL8125 NIC.

You can enable the redistributable firmware in your NixOS configuration:

hardware.enableRedistributableFirmware = true;

Then rebuild:

sudo nixos-rebuild switch

Conclusion

The key issue here is the driver mismatch (r8169 instead of r8125), and installing the correct driver should solve your ARP issue and enable proper transmission.

Let me know how it goes after following these steps! If you need any further assistance, feel free to ask.


ChatGPT can make mistakes. Check important info. See Cookie Preferences.

sudo nixos-rebuild switch --option substitute false --flake …


[nika@nixos:~]$ sudo nixos-rebuild switch --option substitute false --flake /home/nika/.dotfiles#nixos-nika
warning: Git tree '/home/nika/.dotfiles' is dirty
building the system configuration...
warning: Git tree '/home/nika/.dotfiles' is dirty
warning: error: unable to download 'http://tarballs.nixos.org/stdenv/x86_64-unknown-linux-gnu/82b583ba2ba2e5706b35dbe23f31362e62be2a9d/bootstrap-tools.tar.xz': Could not resolve hostname (6) Could not resolve host: tarballs.nixos.org (Could not contact DNS servers); retrying in 288 ms
warning: error: unable to download 'http://tarballs.nixos.org/stdenv/x86_64-unknown-linux-gnu/82b583ba2ba2e5706b35dbe23f31362e62be2a9d/busybox': Could not resolve hostname (6) Could not resolve host: tarballs.nixos.org (Could not contact DNS servers); retrying in 291 ms
warning: error: unable to download 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=948ae97ca5703224bd3eada06b7a69f40dd15a02': Could not resolve hostname (6) Could not resolve host: git.savannah.gnu.org (Could not contact DNS servers); retrying in 281 ms
warning: error: unable to download 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=948ae97ca5703224bd3eada06b7a69f40dd15a02': Could not resolve hostname (6) Could not resolve host: git.savannah.gnu.org (Could not contact DNS servers); retrying in 350 ms
warning: error: unable to download 'https://astron.com/pub/file/file-5.45.tar.gz': Could not resolve hostname (6) Could not resolve host: astron.com (Could not contact DNS servers); retrying in 260 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/make/make-4.4.1.tar.gz': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org (Could not contact DNS servers); retrying in 256 ms
warning: error: unable to download 'https://github.com/NixOS/patchelf/releases/download/0.15.2/patchelf-0.15.2.tar.bz2': Could not resolve hostname (6) Could not resolve host: github.com (Could not contact DNS servers); retrying in 324 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3.tar.gz': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org (Could not contact DNS servers); retrying in 321 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3-patches/bash53-001': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org (Could not contact DNS servers); retrying in 282 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3-patches/bash53-002': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org (Could not contact DNS servers); retrying in 263 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3-patches/bash53-003': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org (Could not contact DNS servers); retrying in 336 ms
warning: error: unable to download 'https://download.savannah.gnu.org/releases/acl/acl-2.3.2.tar.gz': Could not resolve hostname (6) Could not resolve host: download.savannah.gnu.org (Could not contact DNS servers); retrying in 315 ms
warning: error: unable to download 'http://tarballs.nixos.org/stdenv/x86_64-unknown-linux-gnu/82b583ba2ba2e5706b35dbe23f31362e62be2a9d/bootstrap-tools.tar.xz': Could not resolve hostname (6) Could not resolve host: tarballs.nixos.org; retrying in 671 ms
warning: error: unable to download 'https://astron.com/pub/file/file-5.45.tar.gz': Could not resolve hostname (6) Could not resolve host: astron.com; retrying in 548 ms
warning: error: unable to download 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=948ae97ca5703224bd3eada06b7a69f40dd15a02': Could not resolve hostname (6) Could not resolve host: git.savannah.gnu.org; retrying in 560 ms
warning: error: unable to download 'http://tarballs.nixos.org/stdenv/x86_64-unknown-linux-gnu/82b583ba2ba2e5706b35dbe23f31362e62be2a9d/busybox': Could not resolve hostname (6) Could not resolve host: tarballs.nixos.org; retrying in 536 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/make/make-4.4.1.tar.gz': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 655 ms
warning: error: unable to download 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=948ae97ca5703224bd3eada06b7a69f40dd15a02': Could not resolve hostname (6) Could not resolve host: git.savannah.gnu.org; retrying in 680 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3-patches/bash53-002': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 506 ms
warning: error: unable to download 'https://github.com/NixOS/patchelf/releases/download/0.15.2/patchelf-0.15.2.tar.bz2': Could not resolve hostname (6) Could not resolve host: github.com; retrying in 625 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3-patches/bash53-001': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 628 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3.tar.gz': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 682 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3-patches/bash53-003': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 502 ms
warning: error: unable to download 'https://download.savannah.gnu.org/releases/acl/acl-2.3.2.tar.gz': Could not resolve hostname (6) Could not resolve host: download.savannah.gnu.org; retrying in 706 ms
warning: error: unable to download 'http://tarballs.nixos.org/stdenv/x86_64-unknown-linux-gnu/82b583ba2ba2e5706b35dbe23f31362e62be2a9d/busybox': Could not resolve hostname (6) Could not resolve host: tarballs.nixos.org; retrying in 1242 ms
warning: error: unable to download 'https://astron.com/pub/file/file-5.45.tar.gz': Could not resolve hostname (6) Could not resolve host: astron.com; retrying in 1327 ms
warning: error: unable to download 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=948ae97ca5703224bd3eada06b7a69f40dd15a02': Could not resolve hostname (6) Could not resolve host: git.savannah.gnu.org; retrying in 1227 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3-patches/bash53-002': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 1225 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/make/make-4.4.1.tar.gz': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 1256 ms
warning: error: unable to download 'http://tarballs.nixos.org/stdenv/x86_64-unknown-linux-gnu/82b583ba2ba2e5706b35dbe23f31362e62be2a9d/bootstrap-tools.tar.xz': Could not resolve hostname (6) Could not resolve host: tarballs.nixos.org; retrying in 1035 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3-patches/bash53-003': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 1064 ms
warning: error: unable to download 'https://github.com/NixOS/patchelf/releases/download/0.15.2/patchelf-0.15.2.tar.bz2': Could not resolve hostname (6) Could not resolve host: github.com; retrying in 1072 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3-patches/bash53-001': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 1332 ms
warning: error: unable to download 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=948ae97ca5703224bd3eada06b7a69f40dd15a02': Could not resolve hostname (6) Could not resolve host: git.savannah.gnu.org; retrying in 1363 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3.tar.gz': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 1244 ms
warning: error: unable to download 'https://download.savannah.gnu.org/releases/acl/acl-2.3.2.tar.gz': Could not resolve hostname (6) Could not resolve host: download.savannah.gnu.org; retrying in 1089 ms
warning: error: unable to download 'http://tarballs.nixos.org/stdenv/x86_64-unknown-linux-gnu/82b583ba2ba2e5706b35dbe23f31362e62be2a9d/bootstrap-tools.tar.xz': Could not resolve hostname (6) Could not resolve host: tarballs.nixos.org; retrying in 2744 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3-patches/bash53-003': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 2357 ms
warning: error: unable to download 'http://tarballs.nixos.org/stdenv/x86_64-unknown-linux-gnu/82b583ba2ba2e5706b35dbe23f31362e62be2a9d/busybox': Could not resolve hostname (6) Could not resolve host: tarballs.nixos.org; retrying in 2511 ms
warning: error: unable to download 'https://github.com/NixOS/patchelf/releases/download/0.15.2/patchelf-0.15.2.tar.bz2': Could not resolve hostname (6) Could not resolve host: github.com; retrying in 2613 ms
warning: error: unable to download 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=948ae97ca5703224bd3eada06b7a69f40dd15a02': Could not resolve hostname (6) Could not resolve host: git.savannah.gnu.org; retrying in 2194 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3-patches/bash53-002': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 2305 ms
warning: error: unable to download 'https://astron.com/pub/file/file-5.45.tar.gz': Could not resolve hostname (6) Could not resolve host: astron.com; retrying in 2251 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/make/make-4.4.1.tar.gz': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 2110 ms
warning: error: unable to download 'https://download.savannah.gnu.org/releases/acl/acl-2.3.2.tar.gz': Could not resolve hostname (6) Could not resolve host: download.savannah.gnu.org; retrying in 2397 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3.tar.gz': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 2211 ms
warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.3-patches/bash53-001': Could not resolve hostname (6) Could not resolve host: ftpmirror.gnu.org; retrying in 2052 ms
warning: error: unable to download 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=948ae97ca5703224bd3eada06b7a69f40dd15a02': Could not resolve hostname (6) Could not resolve host: git.savannah.gnu.org; retrying in 2767 ms
error: Cannot build '/nix/store/bamwxswxacs3cjdcydv0z7bj22d7g2kc-config.guess-948ae97.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/vq0j27nvpks679djbiykl8ikdyj6z5a9-config.guess-948ae97
       Last 4 log lines:
       > error:
       >        … writing file '/nix/store/vq0j27nvpks679djbiykl8ikdyj6z5a9-config.guess-948ae97'
       >
       >        error: unable to download 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=948ae97ca5703224bd3eada06b7a69f40dd15a02': Could not resolve hostname (6) Could not resolve host: git.savannah.gnu.org
       For full logs, run:
         nix log /nix/store/bamwxswxacs3cjdcydv0z7bj22d7g2kc-config.guess-948ae97.drv
error: Cannot build '/nix/store/bhbpzhiqjrnmb3jxzya8cx5wci0f6fkp-gnu-config-2024-01-01.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/nkp2jjfx646f1brf8mbyn6ypagxks2vi-gnu-config-2024-01-01
error: Cannot build '/nix/store/c14yc5znpdnwlab1a2pnmnhbwdp35vp6-gnu-config-2024-01-01.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/0iz8c9d6dyq3fy9f9shk3fj7y085f7i1-gnu-config-2024-01-01
error: Cannot build '/nix/store/jyr5b8qxxdfykv4cp6g9gsx8f9j8qh3c-gnu-config-2024-01-01.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/wha3g18iplpm2izn2x1a6fmmvdw2iy9q-gnu-config-2024-01-01
error: Cannot build '/nix/store/kks0pc1n4y77xa8q80k7wwr1bymrzw8r-gnu-config-2024-01-01.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/pfdiyprxgmx4pghrqym1r7cmqpib031m-gnu-config-2024-01-01
error: Cannot build '/nix/store/w85rskf0f40fw3ygbpcs3iq87ynncrkg-gnu-config-2024-01-01.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/2b96blvjcclrswkdy5fqzq2kz0nzzac7-gnu-config-2024-01-01
error: Cannot build '/nix/store/zh8559bdz57bq03m7rgpvb22632qrrvh-gnu-config-2024-01-01.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/1kzclixw4c13wxin0b6cij1zykvwp0wb-gnu-config-2024-01-01
error: Cannot build '/nix/store/dwp3wll5zvrx1qmjhg6fvrw89l9j55r9-stdenv-linux.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/br3nr5ymp1p8k9gn9zljmbnsksikj98l-stdenv-linux
error: Cannot build '/nix/store/pnjvpwgka59d6fwpp9fnz42ll2ai4ffm-stdenv-linux.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/s3w5m3spa1g71hx0yb82lvk6394j3w5j-stdenv-linux
error: Cannot build '/nix/store/a4g3k5cr8qxq8k860xr1wcdcrafn9bsz-update-autotools-gnu-config-scripts-hook.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/2yvqgbgavz96qpm12pf8jackg6z2rm67-update-autotools-gnu-config-scripts-hook
error: Cannot build '/nix/store/lk1ngqgzsgxgncpc2b26gnkh2fgga5gq-update-autotools-gnu-config-scripts-hook.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/13z86wk9fl7padcbqpkabs7vn5m2xsza-update-autotools-gnu-config-scripts-hook
error: Cannot build '/nix/store/qkv79kfbw806vwlzf42mwsasgn3i70yf-update-autotools-gnu-config-scripts-hook.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/l2xk4ac1wx9c95kpp8vymv9r9yn57fvh-update-autotools-gnu-config-scripts-hook
error: Cannot build '/nix/store/qvd48yga2kyydg00lwb87mfqn31mrzh9-update-autotools-gnu-config-scripts-hook.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/b6vpv6747yf3nz1rdsxlbibpfvlpw6c7-update-autotools-gnu-config-scripts-hook
error: Cannot build '/nix/store/vcq0nzi3rzndlyryvb2pz35xpp580ghy-update-autotools-gnu-config-scripts-hook.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/9lid25cvryxhm6xzp80lp29nai9245sc-update-autotools-gnu-config-scripts-hook
error: Cannot build '/nix/store/zgb9kik3lxh6yz3nhl2pjhzpqxhaf301-update-autotools-gnu-config-scripts-hook.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/ivs0ximaj8m0dgakfd87cd9s466s2r2i-update-autotools-gnu-config-scripts-hook
error: Cannot build '/nix/store/h9fwxhilcq146b2qs2iql5kvwxgx7z21-nixos-system-nixos-25.11.20251213.28bb483.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/7vm780hwqnj2vhpjayrg1mpgn12an9kx-nixos-system-nixos-25.11.20251213.28bb483
Command 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths '/home/nika/.dotfiles#nixosConfigurations."nixos-nika".config.system.build.toplevel' --no-link --option substitute false' returned non-zero exit status 1.

Use the --offline switch, I forget if they’re different, but I know it exists and works for me these days.

Otherwise you’ve made changes that will need downloads, which you need to revert (or boot into the installer for).

My bad, it should be systemctl list-dependencies multi-user.target (no --user). Also don’t use sudo with systemctl here (for both commands).

By the way I have launched your configuration on a VM, it works. So I really suspect there is a migration issue going on.

–offline didn’t work, I guess installer will have to be. it’ll take me a while to get that arranged

yeah no, nothing that matters in the current context. only fail is lactd, which can be ignored

okay I have the live CD ready. how do I fix this mess? I think I have to chroot into the local installation of nix and do the nixos-rebuild but how do I do that?

Amusingly, this post was just linked in another post which may also need to use the installer to fix a completely unrelated mess (that was more obviously caused by the user in that case): Broken bootloader - #3 by waffle8946

I’m sure the wiki has something similar somewhere, but yeah, I’m less and less happy with the quality of information on either wiki, so fair enough.

did nixos-enter to my main install and lo and behold, same issue.

pinging in my instalation returns a system error.

running nixos-rebuild outside of nixos-enter works but that’s not what whats gonna fix this

Oh that’s fascinating. So, to be clear, in nixos-enter, you get a beautifully obtuse “system error” message?

Anything in dmesg?

just so we’re clear, it’s only when pinging anything outside of my LAN, such as

ping gnu.org
ping: gnu.org: System error

nothing that tells me anything about internet connectivity, but I can fetch the output!

1 Like

the output is like over 100k characters total, so I need to know what you’d like me to grep