Closed figsoda closed 1 year ago
All my other systemd timers (fstrim, logrotate, and systemd-tmpfiles-clean) seems to be working fine atm, so It might be because of some incompatibility between the specific modules (system.autoUpgrade and nix.gc.automatic) and systemd
I'm not entirely sure I understand what's the problem here. Some timers wake up your system when suspended, but then don't run, and some do? Or in general, you didn't see any timer recently run properly after being woken up by suspend?
If it's only some timers, I'd probably propose carefully inspecting the timer definitions, see if you can spot any difference.
nix-gc and nixos-upgrade doesnt run until I do a nixos-rebuild, WakeSystem wakes up the system at the specified time even though the timer doesn't trigger. There could be something wrong with their definitions, but I haven't changed my config and they used to be working before the commit I mentioned.
Can you check if this is https://github.com/NixOS/nixpkgs/pull/199618#issuecomment-1310224853, and if the backport fixed it for you as well?
I have 100 packages to build, since it's in master already, I will just wait for it to get into nixos-unstable and see if that fixes the issue
seems to be working now
Describe the bug
I have set
autoUpgrade.dates = "04:00"
, and also setWakeSystem
to be true, but my laptop wakes up from suspend at 04:00, does nothing, and goes back to sleep (journal). I have overwritten itsscript
, but the same thing happens for nix-gc so I doubt that's the cause. The timer doesn't fire even when I turn on my machine, it only fires when I run 'nixos-rebuild/switch-to-configuration switch', which reloads systemd services, I tried omittingWakeSystem
and/or settingpersistent
tofalse
, also rebooted my system several times, none of which fixed the issue.Here is my config: nix-gc nixos-upgrade systemd. I don't know if bug is specific to my config.
This is the last auto upgrade that worked: https://github.com/figsoda/dotfiles/commit/a1b0df36811ddaf3195da7d6b208a9741bebc8bc, I skimmed through the nixpkgs diff (https://github.com/nixos/nixpkgs/compare/32096899af23d49010bd8cf6a91695888d9d9e73...db25c4da285c5989b39e4ce13dea651a88b7a9d4) but nothing in particular caught my eye. It could also because I have rebooted my machine after this commit and some things have changed, so the issue could have been introduced before 32096899af23d49010bd8cf6a91695888d9d9e73.
All my other systemd timers (fstrim, logrotate, and systemd-tmpfiles-clean) seems to be working fine atm, so It might be because of some incompatibility between the specific modules (system.autoUpgrade and nix.gc.automatic) and systemd
Expected behavior
nixos-upgrade.timer to fire at 04:00 and upgrade my system
Additional Context
I am using ROG Zephryus G14 with the nixos-hardware module
Notify maintainers
@NixOS/systemd
Metadata