error: while evaluating the attribute 'config.system.build.toplevel' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:293:5:
while evaluating 'foldr' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:52:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:128:12:
while evaluating 'fold'' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:55:15, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/lists.nix:59:8:
Failed assertions:
- You have set services.power-profiles-daemon.enable = true;
which conflicts with services.tlp.enable = true;
When I disabled TLP I was able to upgrade. After the upgrade if I reenable TLP I get the same error.
I do not see services.power-profiles-daemon.enable = true; set anywhere in my configuration. Is there some other way that it is being set?
power-profiles-daemon is part of Gnome 40, which you are probably using.
use powertop to see if p-p-d does a decent job as is for you – chances are it does and you don’t really need TLP.
To add a data point.
I’ve recently put NixOS on an old laptop (Lenovo X220), and enabled TLP thinking that since this is a Thinkpad and it’s old, TLP is just the thing.
Then spent several hours trying to figure out why hibernation (more specifically, waking up from hibernation) locks the laptop up cold, but only when I hibernate when on battery.
Turned out that TLP was the culprit – it put the wifi card in some sort of power saving mode that happens to break hibernation. And this is TLP’s default behavior!
So I disabled TLP and instead set powerManagement.powertop.enable = true, all good now (including power consumption).
This was another installment of “when in doubt, stay with the defaults and follow Fedora”, I suppose…