I have nix.gc
and system.autoUpgrade
enabled in my NixOS config. I assume they’re doing their job, but I’d like to see proof. Do they leave any logs when they run?
I know I can look at when their respective services last ran, but I still just have to assume everything worked as expected.
1 Like
systemctl status nix-gc
systemctl status nixos-upgrade
Logs can be viewed with journalctl. journalctl -u nix-gc.service
for example.
Okay, I may have messed up something with the journal then. I get no log entries.
❯ journalctl -u nix-gc.service
-- No entries --
❯ journalctl -u nixos-upgrade.service
-- No entries --