Hi, I’m brand new to Nix just installed tonight. I am reporting here what I am seeing in every Linux with systemd that I have tried. (Arch-based, Debian-based, Ubuntu about 12 distros in all.) I have come to the conclusion that either there is serious flaw in systemd or else it is my hardware. Likely the latter.
I do a fresh install and then check the firewall. On Nix 25.05 I get this:
[…:~]$ systemctl status firewall
● firewall.service - Firewall
Loaded: loaded (/etc/systemd/system/firewall.service; enabled; preset: ignored)
Active: active (exited) since Tue 2025-08-05 20:20:23 BST; 39min ago
Invocation: 5e751f7f04ab45b3aa4c93e6ee0cb406
Process: 948 ExecStart=firewall-start (code=exited, status=0/SUCCESS)
Main PID: 948 (code=exited, status=0/SUCCESS)
IP: 0B in, 0B out
IO: 1.1M read, 0B written
Mem peak: 10.3M
CPU: 118ms
Aug 05 20:20:22 nixos systemd[1]: Starting Firewall…
Aug 05 20:20:23 nixos systemd[1]: Finished Firewall.
FWIW journalctl -u firewall -b gives the last 2 lines exactly and no more.
Enabled, active and exited within 1 second. BUT systemd still reports it as Active. No one has taken me seriously but I think this is a big problem. I’ve got a late 2024 HP Zbook Fury with Nvidia graphics. Either Nvidia or other hardware (complex uefi bios) is breaking something or else systemd has been security breached. You see my concern? These are the only things in common. Hardware and systemd.
Firewalld does work OK. The difference is that it runs through dbus. Why that makes a difference I don’t know but it is the only thing I’ve spotted. That said I am also having difficulties running Wireguard with similar rapid exits while systemd still thinks it is active.
Many thanks for any insight