diff options
author | WilliButz <wbutz@cyberfnord.de> | 2019-11-24 22:46:49 +0100 |
---|---|---|
committer | WilliButz <wbutz@cyberfnord.de> | 2019-11-25 10:46:28 +0100 |
commit | fc91467b0d22603de22c698f80d6217b215e688b (patch) | |
tree | 891cd760c67cb85ec7f104966f94c4a8fc31b14f /nixos/modules/system | |
parent | 2ffb2c0bd10e393ec530ecf85d7e01c59d5569d0 (diff) |
nixos/timesyncd: add user systemd-timesync to group systemd-timesync
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/timesyncd.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/timesyncd.nix b/nixos/modules/system/boot/timesyncd.nix index 0b1d0ff6c22b8..9e2f36ca01f8b 100644 --- a/nixos/modules/system/boot/timesyncd.nix +++ b/nixos/modules/system/boot/timesyncd.nix @@ -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") '' |