Commit bd883983 authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

nixos/harmonia: allocate user

DynamicUser seem to broken in combination with the nix-daemon.
parent 625d8272
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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";