dotfiles/flakes/common/nix_modules/timezone_auto.nix
RingOfStorms (Joshua Bell) 274d59ce4b update pins
2025-12-04 09:29:10 -06:00

17 lines
398 B
Nix

{
...
}:
{
time.timeZone = null;
services.automatic-timezoned.enable = true;
# Add a polkit rule so automatic-timezoned can change timezone
security.polkit.extraConfig = ''
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.timedate1.set-timezone" &&
subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
'';
}