How do I increase the disk space of /run/user/999?

I am attempting to install nu from source using cargo install nu but keep running out of disk space.

It seems to be my /run/user/999 mount does not have enough disk space.
I adjusted my boot.runSize option and that gave /run/user plenty more but not /run/user/999:

 df -h /run/user/
Filesystem      Size  Used Avail Use% Mounted on
tmpfs          1000M  8.0M  993M   1% /run
me@somehost /tmp> df -h /run/user/999/
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           786M   80K  786M   1% /run/user/999

Any ideas what I am doing wrong? I’m sure I’m overlooking something obvious with my configuration.nix.

1 Like

I found the answer here:

I needed to configure systemd’s logind using the services.logind.extraConfig option.

You do need to reboot the system after applying nixos-rebuild switch.

2 Likes