git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/localtime: make localtimed a system user

Currently, a user is created in the 1000-29999 range. This is incorrect, as localtimed is a system service and not a user.

commit026869192540e0b9acbb6b49fe72ed1a276482ec authorV <v@anomalous.eu> dateTue 9 Feb 2021, 18:21 (6 years ago) parent26fa078
1 file changed+4−5
nixos/modules/services/system/localtime.nix+4−5
nixos/modules/services/system/localtime.nix+4−5
@@ -29,15 +29,14 @@ in {
2929 };
3030 };
3131
32− # We use the 'out' output, since localtime has its 'bin' output
33− # first, so that is what we get if we use the derivation bare.
3432 # Install the polkit rules.
35− environment.systemPackages = [ pkgs.localtime.out ];
33+ environment.systemPackages = [ pkgs.localtime ];
3634 # Install the systemd unit.
37− systemd.packages = [ pkgs.localtime.out ];
35+ systemd.packages = [ pkgs.localtime ];
3836
3937 users.users.localtimed = {
40− description = "Taskserver user";
38+ description = "localtime daemon";
39+ isSystemUser = true;
4140 };
4241
4342 systemd.services.localtime = {