Linux is cool, I can do a lot of things with it. If i set a config file in Linux, I am damn sure that it is ran every single time. The code does what you tell it to do.
There is 1 thing that always seems to be “black magic”: 1) lid close and suspend 2) lid close and suspend and lock.
If we ignore locking for a moment and focus on suspend. I cant seem to figure out why sometimes lid close would suspend immediately, when other time it takes 5 seconds after lid closes. On some days, lid closes would not even suspend !!
Did anyone manage to get suspend work 100 %? I cant believe we have tons of great linux tools and years into kernel dev, and still suspend is a hit or miss.


NixOS for fun:
powerManagement.enable = true; services.logind.extraConfig = ''HandleLidSwitch=suspend'';Hows the maintenance on nixos? In reguards to updates. I really like arch for my dailies and have been running debain on my media device. I’m trying to find something that bridges that gap of more current packages and easy/low maintenance.
Been wanting to try it to see what it’s all about.
I’ve used Arch as my daily for so many years now, it is a little tricky moving from imperative to declarative configuration. I’m treating my NixOS machine more as long term maintenance, so I’m not using the most bleeding edge packages. You can do that though by pointing to
nixos-unstable.I plan on using flakes for pinning and home-manager for writing
~/.configconfigurations, but I don’t think I really need it, more just to learn how. With home-manager, I could rebuild this machine from scratch (including individual application preferences/settings) just with the backed up configs. I can at any point rollback to any saved previous generation though, too, just by restarting the machine.I’ve really been impressed with it though. To the point, I will probably be moving my Arch DIY router over and converting it to NixOS.
Thanks, maybe I’ll give it a shot soon.