Hi! I have the following problem. I have two machines: A and B. machine A i an old laptop that I use as a desktop, I want it to be always on so I added these lines to my conf.nix:
systemd.sleep.extraConfig = ''
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
'';
And it worked fine. Machine B is a laptop that I take with me to work. Both run NixOS. Now I am syncing /etc/nixos on both machines via syncthing and I don’t want that systemd.sleep.extraConfig on machine B. Is it possible to add some kind of “if clause” to conf.nix based on hostname to achieve that?