Merge pull request #112822 from deviant/localtime-user-allocation
nixos/localtime: make localtimed a system user
This commit is contained in:
commit
7ea4ee71c9
1 changed files with 4 additions and 5 deletions
|
@ -29,15 +29,14 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# We use the 'out' output, since localtime has its 'bin' output
|
|
||||||
# first, so that is what we get if we use the derivation bare.
|
|
||||||
# Install the polkit rules.
|
# Install the polkit rules.
|
||||||
environment.systemPackages = [ pkgs.localtime.out ];
|
environment.systemPackages = [ pkgs.localtime ];
|
||||||
# Install the systemd unit.
|
# Install the systemd unit.
|
||||||
systemd.packages = [ pkgs.localtime.out ];
|
systemd.packages = [ pkgs.localtime ];
|
||||||
|
|
||||||
users.users.localtimed = {
|
users.users.localtimed = {
|
||||||
description = "Taskserver user";
|
description = "localtime daemon";
|
||||||
|
isSystemUser = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.localtime = {
|
systemd.services.localtime = {
|
||||||
|
|
Loading…
Reference in a new issue