Tor is not starting and fails every rebuild

     Loaded: loaded (/etc/systemd/system/tor.service; enabled; preset: ignored)
     Active: failed (Result: start-limit-hit) since Tue 2026-11-03 18:13:56 NZDT; 7s ago
 Invocation: d4a5280fc27244eda0f051d59d8c7e36
       Docs: man:tor(8)
    Process: 155288 ExecStartPre=/nix/store/xhs7r11pgf81vdhmrc18xv5xmj02mf08-tor-0.4.9.15/bin/tor -f /nix/store/1jk3j5xyby6kqpqxq8z6lzf85j9jflif-torrc --verify-config (code=exited, status=217/USER)
         IP: 0B in, 0B out
         IO: 0B read, 0B written
   Mem peak: 1.2M
        CPU: 7ms
Nov 03 18:13:56 daspidercave systemd[1]: tor.service: Scheduled restart job, restart counter is at 5.
Nov 03 18:13:56 daspidercave systemd[1]: tor.service: Start request repeated too quickly.
Nov 03 18:13:56 daspidercave systemd[1]: tor.service: Failed with result 'start-limit-hit'.
Nov 03 18:13:56 daspidercave systemd[1]: Failed to start Tor Daemon.
switching to system configuration /nix/store/42af2icdhayj88hyhwdx82kk22v10ixr-nixos-system-daspidercave-26.11.20261101.0bb2eed failed (status 4)
nixos-rebuild-switch-to-configuration.service: Main process exited, code=exited, status=4/NOPERMISSION
nixos-rebuild-switch-to-configuration.service: Failed with result 'exit-code'.
nixos-rebuild-switch-to-configuration.service: Consumed 1.145s CPU time over 12.921s wall clock time, 33.3M memory peak, 49.6M read from disk, 17.3M written to disk.
Command 'systemd-run -E LOCALE_ARCHIVE -E NIXOS_INSTALL_BOOTLOADER -E NIXOS_NO_CHECK --collect --no-ask-password --quiet --service-type=exec --unit=nixos-rebuild-switch-to-configuration --wait --verbose --output=cat /nix/store/42af2icdhayj88hyhwdx82kk22v10ixr-nixos-system-daspidercave-26.11.20261101.0bb2eed/bin/switch-to-configuration switch' returned non-zero exit status 4.
[ble: exit 4]

^ I am having an issue with the tor daemon
it is not even starting
this is the issue from running PreExec:

[spiderunderurbed@daspidercave:/var/lib/nixos]$ /nix/store/xhs7r11pgf81vdhmrc18xv5xmj02mf08-tor-0.4.9.15/bin/tor -f /nix/store/1jk3j5xyby6kqpqxq8z6lzf85j9jflif-torrc --verify-config
Nov 03 18:29:05.510 [notice] Tor 0.4.9.15 running on Linux with Libevent 2.1.13-stable, OpenSSL 3.5.9, Zlib 1.3.2, Liblzma 5.8.4, Libzstd 1.5.7 and Glibc 2.44 as libc.
Nov 03 18:29:05.510 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
Nov 03 18:29:05.510 [notice] Read configuration file "/nix/store/1jk3j5xyby6kqpqxq8z6lzf85j9jflif-torrc".
Configuration was valid

[spiderunderurbed@daspidercave:/var/lib/nixos]$ 

All I did was this:

  services = {
    tor = {
        enable = true;
        client.enable = true;
    };

I don’t know how related this is, but if it were not building on my end with no error messages except failing to switch I would try fixing the Nix Store:

I’ve had this kind of problems with “unable to switch”. Also you sure there are no other errors while building? Try nixos-rebuild boot --upgrade? Or rebooting? There’s so much that could have gone wrong.