nixos/timesyncd: add user systemd-timesync to group systemd-timesync

This commit is contained in:
WilliButz 2019-11-24 22:46:49 +01:00
parent 2ffb2c0bd1
commit fc91467b0d
No known key found for this signature in database
GPG Key ID: 92582A10F1179CB2

View File

@ -50,7 +50,10 @@ with lib;
${config.services.timesyncd.extraConfig}
'';
users.users.systemd-timesync.uid = config.ids.uids.systemd-timesync;
users.users.systemd-timesync = {
uid = config.ids.uids.systemd-timesync;
group = "systemd-timesync";
};
users.groups.systemd-timesync.gid = config.ids.gids.systemd-timesync;
system.activationScripts.systemd-timesyncd-migration = mkIf (versionOlder config.system.stateVersion "19.09") ''