The systemd user temp area /run/user/<id>
is by default 10% of the machine RAM. So something like this;
tmpfs 1618464 415764 1202700 26% /run/user/1000
It can be changed in logind.conf
, which nixos controls like this;
services.logind.extraConfig = "RuntimeDirectorySize=4G";
alas, it doesn’t work.
I do get a file with the right config;
$ cat /nix/store/bh2bhgjwzgy8j6bjd2980ddkbccbfjhf-etc-logind.conf
[Login]
KillUserProcesses=no
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HandleLidSwitchExternalPower=suspend
RuntimeDirectorySize=4G
alas, that is not the file that gets used;
/etc/logind.conf -> /etc/static/systemd/logind.conf -> /nix/store/kyrcaw49b0zqym80c6gf49kb7rqncc4n-etc-logind.conf
$ cat /nix/store/kyrcaw49b0zqym80c6gf49kb7rqncc4n-etc-logind.conf
[Login]
KillUserProcesses=no
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HandleLidSwitchExternalPower=suspend
any ideas what I’m doing wrong?