anchor.diff:          User = "docker-registry";
           Group = "docker";
           PermissionsStartOnly = true;
  +        WorkingDirectory = cfg.storagePath;
         };
   
  -      preStart = ''
  -        mkdir -p ${cfg.storagePath}
  -        if [ "$(id -u)" = 0 ]; then
  -          chown -R docker-registry:docker ${cfg.storagePath}
  -        fi
  -      '';
         postStart = ''
           until ${pkgs.curl}/bin/curl -s -o /dev/null 'http://${cfg.host}:${toString cfg.port}/'; do
             sleep 1;
  
positive.code:     };
  
      users.extraGroups.docker.gid = mkDefault config.ids.gids.docker;
      users.extraUsers.docker-registry.uid = config.ids.uids.docker-registry;
    };
  }
  
negative.code: 
      storagePath = mkOption {
        type = types.path;
        default = "/var/lib/docker-registry";
        description = "Docker registry storage path.";
      };
  
  