nixos/harmonia: allocate user
DynamicUser seem to broken in combination with the nix-daemon.
This commit is contained in:
parent
625d82720e
commit
bd88398369
1 changed files with 5 additions and 1 deletions
|
@ -29,6 +29,11 @@ in
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
nix.settings.extra-allowed-users = [ "harmonia" ];
|
||||
users.users.harmonia = {
|
||||
isSystemUser = true;
|
||||
group = "harmonia";
|
||||
};
|
||||
users.groups.harmonia = { };
|
||||
|
||||
systemd.services.harmonia = {
|
||||
description = "harmonia binary cache service";
|
||||
|
@ -50,7 +55,6 @@ in
|
|||
ExecStart = lib.getExe cfg.package;
|
||||
User = "harmonia";
|
||||
Group = "harmonia";
|
||||
DynamicUser = true;
|
||||
PrivateUsers = true;
|
||||
DeviceAllow = [ "" ];
|
||||
UMask = "0066";
|
||||
|
|
Loading…
Reference in a new issue